/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar - CRITICAL FOR LANGUAGE SWITCHER */
.top-bar {
    background: #1e3c72;
    color: white;
    padding: 12px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 999;
    overflow: visible !important;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item i {
    color: #ffd700;
}

.top-bar-right {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
    position: relative !important;
    z-index: 999 !important;
}

/* Language Switcher - ULTRA VISIBLE */
.language-switcher {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffd700 !important;
    border: 3px solid #1e3c72 !important;
    padding: 8px !important;
    border-radius: 25px !important;
    gap: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    min-width: 110px !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 1000 !important;
    min-height: 40px !important;
}

.lang-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #1e3c72 !important;
    color: white !important;
    border: 2px solid white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    min-width: 45px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 1001 !important;
    min-height: 35px !important;
}

.lang-btn:hover {
    background: #2a5298 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-btn.active {
    background: #ffd700 !important;
    color: #1e3c72 !important;
    border-color: #1e3c72 !important;
    transform: scale(1.05);
}

.social-links-top {
    display: flex;
    gap: 0.5rem;
}

.social-links-top a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links-top a:hover {
    background: #ffd700;
    color: #1e3c72;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(30, 60, 114, 0.3);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    min-width: max-content;
}

.nav-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.logo-image {
    width: 60px;
    height: 60px;
    margin-left: 15px;
    object-fit: contain;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.nav-logo span {
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.nav-logo:hover span {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher in Header */
.language-switcher-header {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffd700 !important;
    border: 2px solid #1e3c72 !important;
    padding: 6px !important;
    border-radius: 20px !important;
    gap: 4px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    min-width: 90px !important;
    justify-content: center !important;
    align-items: center !important;
}

.lang-btn-header {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #1e3c72 !important;
    color: white !important;
    border: 1px solid white !important;
    padding: 6px 12px !important;
    border-radius: 15px !important;
    font-weight: bold !important;
    font-size: 0.8rem !important;
    min-width: 35px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
}

.lang-btn-header:hover {
    background: #2a5298 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lang-btn-header.active {
    background: #ffd700 !important;
    color: #1e3c72 !important;
    border-color: #1e3c72 !important;
    transform: scale(1.05);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: inline-block;
    min-width: max-content;
}

.nav-link:hover {
    color: #ffd700;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffd700;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(42, 82, 152, 0.8) 100%),
                url('images/Back.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 60, 114, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(42, 82, 152, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 193, 7, 0.05) 50%, transparent 70%);
    animation: shimmer 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-feature i {
    color: #ffd700;
    font-size: 1.2rem;
}

.hero-main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat h3 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.hero-stat p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: #1e3c72;
    border: 2px solid #1e3c72;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: #1e3c72;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.3);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h6 {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Fact Section */
.fact {
    padding: 80px 0;
    background: #1e3c72;
    color: white;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.fact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.fact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fact-icon i {
    font-size: 2rem;
    color: #1e3c72;
}

.fact-content h3 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.fact-content p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    order: 1;
}

.about-text {
    order: 2;
}

.about-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-experience {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #1e3c72;
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-experience h3 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.about-features {
    margin: 2rem 0;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-feature i {
    color: #ffd700;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.about-feature h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.about-feature p {
    color: #666;
    font-size: 0.95rem;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    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;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: #f8f9fa;
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-choose-text {
    order: 2;
}

.why-choose-image {
    order: 1;
}

.why-choose-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.why-choose-features {
    margin: 2rem 0;
}

.why-choose-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: white;
    font-size: 1.5rem;
}

.feature-content h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(30, 60, 114, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 82, 152, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, 
            rgba(30, 60, 114, 0.08) 0%, 
            rgba(42, 82, 152, 0.08) 50%, 
            rgba(30, 60, 114, 0.04) 100%);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
    transform: scale(1.1);
}

.product-card:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 40px 80px rgba(30, 60, 114, 0.4),
        0 20px 40px rgba(42, 82, 152, 0.3),
        0 0 0 2px rgba(30, 60, 114, 0.4);
    border-color: rgba(30, 60, 114, 0.6);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        rgba(30, 60, 114, 0.4),
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.8s ease;
    z-index: 1;
    opacity: 0;
}

.product-card:hover .product-image::before {
    left: 100%;
    opacity: 1;
}

.product-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.95) contrast(1.05);
    position: relative;
    z-index: 0;
}

.product-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(30, 60, 114, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(42, 82, 152, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: all 0.8s ease;
    transform: scale(1.2);
}

.product-overlay {
    display: none;
}

.product-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(30, 60, 114, 0.2) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.product-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(30, 60, 114, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تم إزالة الأيقونة من التأثير */

.product-card:hover .product-overlay {
    opacity: 1;
    transform: scale(1.1);
    animation: float 1s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(30, 60, 114, 0.8);
}

.product-card:hover .product-overlay::before {
    opacity: 1;
    animation: float 2s ease-in-out infinite;
}

.product-card:hover .product-overlay::after {
    width: 250px;
    height: 250px;
    animation: pulse 1.5s infinite;
}

.product-card:hover .product-image::before {
    animation: shimmer 1s ease-in-out infinite;
}

/* تم إزالة تأثير الأيقونة */

.product-card:hover .product-photo {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1) saturate(1.05);
}

.product-card:hover .product-photo::after {
    opacity: 1;
    transform: scale(1);
}

.product-card:hover .product-content h3 {
    color: #2a5298;
    transform: translateX(5px);
}

.product-card:hover .product-content p {
    color: #555;
    transform: translateX(3px);
}

.product-card:hover .product-content::before {
    transform: scaleX(1);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(100%) skewX(-15deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.product-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
    background: white;
    transition: all 0.5s ease;
}

.product-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #1e3c72, 
        #2a5298, 
        #1e3c72,
        #2a5298);
    transform: scaleX(0);
    transition: all 0.5s ease;
    transform-origin: left;
    box-shadow: 0 0 10px rgba(30, 60, 114, 0.6);
}

.product-card:hover .product-content::before {
    transform: scaleX(1);
}

.product-content h3 {
    font-size: 1.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
    transition: all 0.5s ease;
    position: relative;
}

.product-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
}

.product-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.product-features span {
    background: #f8f9fa;
    color: #1e3c72;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.product-features span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(30, 60, 114, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.product-features span:hover::before {
    left: 100%;
}

.product-features span {
    background: #f8f9fa;
    color: #1e3c72;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.product-features span:hover {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
    transform: translateY(-8px) scale(1.08) translateZ(10px);
    box-shadow: 
        0 15px 35px rgba(30, 60, 114, 0.7),
        0 0 0 2px rgba(42, 82, 152, 0.4);
}

/* Call to Action Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #1e3c72;
    width: 40px;
}

.contact-item h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3c72;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1e3c72;
    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,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ffd700;
    color: #1e3c72;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Language Support */
html[lang="en"] {
    direction: ltr;
}

html[lang="en"] body {
    text-align: left;
}

html[lang="en"] .hero-title::after {
    left: auto;
    right: 0;
}

html[lang="en"] .logo-image {
    margin-left: 0;
    margin-right: 15px;
}

html[lang="en"] .nav-logo {
    flex-direction: row-reverse;
}

/* Arabic Language Support */
html[lang="ar"] {
    direction: rtl;
}

html[lang="ar"] body {
    text-align: right;
}

html[lang="ar"] .hero-title::after {
    right: auto;
    left: 0;
}

html[lang="ar"] .logo-image {
    margin-right: 0;
    margin-left: 15px;
}

html[lang="ar"] .nav-logo {
    flex-direction: row;
}

/* Fix Arabic Navigation Text Wrapping */
html[lang="ar"] .nav-link {
    white-space: nowrap;
    min-width: max-content;
}

html[lang="ar"] .nav-menu {
    gap: 1.5rem;
}

html[lang="ar"] .nav-buttons .btn {
    white-space: nowrap;
    min-width: max-content;
    text-align: center;
    font-size: 0.9rem;
    padding: 12px 20px;
}

/* Top Bar Language Support */
html[lang="ar"] .top-bar-content {
    flex-direction: row-reverse;
}

html[lang="ar"] .top-bar-left {
    justify-content: flex-end;
}

html[lang="ar"] .top-bar-right {
    justify-content: flex-start;
}

html[lang="ar"] .top-bar-item i {
    margin-left: 0.5rem;
    margin-right: 0;
}

html[lang="ar"] .social-links-top a {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[lang="ar"] .top-bar-item {
    flex-direction: row-reverse;
}

html[lang="ar"] .social-links-top {
    flex-direction: row-reverse;
}

/* Header Language Support */
html[lang="ar"] .nav-container {
    flex-direction: row-reverse;
}

html[lang="ar"] .nav-menu {
    flex-direction: row-reverse;
    gap: 1.5rem;
}

html[lang="ar"] .nav-buttons {
    flex-direction: row-reverse;
}

html[lang="ar"] .language-switcher-header {
    flex-direction: row-reverse;
}

/* Fix Arabic Navigation Layout */
html[lang="ar"] .nav-menu .nav-item {
    white-space: nowrap;
    min-width: max-content;
}

html[lang="ar"] .nav-menu .nav-link {
    display: inline-block;
    white-space: nowrap;
    min-width: max-content;
    text-align: center;
}

html[lang="ar"] .nav-menu {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

html[lang="ar"] .nav-container {
    gap: 2rem;
}

/* Arabic Language Support for Sections */
html[lang="ar"] .hero-container {
    direction: rtl;
}

html[lang="ar"] .about-content {
    direction: rtl;
}

html[lang="ar"] .why-choose-content {
    direction: rtl;
}

html[lang="ar"] .contact-content {
    direction: rtl;
}

html[lang="ar"] .hero-features {
    direction: rtl;
}

html[lang="ar"] .about-features {
    direction: rtl;
}

html[lang="ar"] .why-choose-features {
    direction: rtl;
}

html[lang="ar"] .hero-buttons {
    direction: rtl;
}

html[lang="ar"] .about-buttons {
    direction: rtl;
}

html[lang="ar"] .cta-buttons {
    direction: rtl;
}

/* Arabic Text Alignment */
html[lang="ar"] .section-header {
    text-align: right;
}

html[lang="ar"] .section-header p {
    text-align: right;
}

html[lang="ar"] .hero-description {
    text-align: right;
}

html[lang="ar"] .about-text h2,
html[lang="ar"] .about-text p {
    text-align: right;
}

html[lang="ar"] .why-choose-text h2,
html[lang="ar"] .why-choose-text p {
    text-align: right;
}

html[lang="ar"] .cta-text h2,
html[lang="ar"] .cta-text p {
    text-align: right;
}

html[lang="ar"] .contact-info h4,
html[lang="ar"] .contact-info p {
    text-align: right;
}

/* Arabic Form Support */
html[lang="ar"] .form-group input,
html[lang="ar"] .form-group textarea {
    text-align: right;
}

html[lang="ar"] .form-group label {
    text-align: right;
}

/* Arabic Service Cards */
html[lang="ar"] .service-card h3,
html[lang="ar"] .service-card p {
    text-align: right;
}

/* Arabic Product Cards */
html[lang="ar"] .product-content h3,
html[lang="ar"] .product-content p {
    text-align: right;
}

/* Arabic Footer */
html[lang="ar"] .footer-section h3,
html[lang="ar"] .footer-section h4,
html[lang="ar"] .footer-section p {
    text-align: right;
}

html[lang="ar"] .footer-section ul {
    text-align: right;
}

/* Arabic Icon Positioning */
html[lang="ar"] .about-feature i {
    margin-left: 0;
    margin-right: 1rem;
}

html[lang="ar"] .why-choose-feature i {
    margin-left: 0;
    margin-right: 1rem;
}

html[lang="ar"] .contact-item i {
    margin-left: 0;
    margin-right: 1rem;
}

/* Arabic Stats */
html[lang="ar"] .hero-stat {
    text-align: center;
}

html[lang="ar"] .fact-item {
    flex-direction: row-reverse;
}

html[lang="ar"] .fact-icon {
    margin-left: 0;
    margin-right: 1.5rem;
}

/* Arabic Product Features */
html[lang="ar"] .product-features {
    justify-content: flex-end;
}

html[lang="ar"] .product-features span {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1e3c72;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-text {
        order: 1;
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .why-choose-image {
        order: 2;
    }
    
    .why-choose-text {
        order: 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .fact-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .language-switcher-header {
        padding: 4px !important;
        gap: 2px !important;
        min-width: 80px !important;
    }
    
    .lang-btn-header {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
        min-width: 30px !important;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .top-bar-left {
        justify-content: center;
    }
    
    .top-bar-right {
        justify-content: center;
    }
    
    /* Mobile Language Switcher */
    .language-switcher {
        padding: 6px !important;
        gap: 4px !important;
        min-width: 100px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .lang-btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        min-width: 40px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Responsive Arabic Support */
    html[lang="ar"] .top-bar-content {
        flex-direction: column;
    }
    
    html[lang="ar"] .top-bar-left {
        justify-content: center;
    }
    
    html[lang="ar"] .top-bar-right {
        justify-content: center;
    }
    
    html[lang="ar"] .nav-container {
        flex-direction: row;
    }
    
    html[lang="ar"] .nav-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .nav-logo span {
        font-size: 1rem;
    }
    
    /* Small Mobile Language Switcher */
    .language-switcher {
        padding: 4px !important;
        gap: 2px !important;
        min-width: 90px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .lang-btn {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
        min-width: 35px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
