/* ========================================
   GLOBAL 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: #f9f9f9;
}

/* Support for Arabic fonts */
html[lang="ar"],
html[lang="ar"] body {
    font-family: 'Segoe UI', 'Cairo', 'Droid Arabic Kufi', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 40px;
    width: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 5px;
}

.logo-text {
    font-size: 1.3rem;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
    border-bottom: 2px solid #ffc107;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
        radial-gradient(circle at 55% 35%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
        radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
        radial-gradient(circle at 90% 25%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
        repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 55px);
    opacity: 0.62;
    animation: iotNetworkDrift 13s linear infinite;
}

.hero::after {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.5), transparent 30%);
    animation: iotSignalPulse 4.2s ease-in-out infinite;
}

@keyframes iotNetworkDrift {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-1.5%, -1.5%, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes iotSignalPulse {

    0%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.045);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-btn {
    background: #ffc107;
    color: #003d82;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: 80px 0;
    background: white;
}

.features h2,
.solutions h2,
.benefits h2,
.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #003d82;
}

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

.feature-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 61, 130, 0.15);
    border-color: #0056b3;
}

.feature-icon {
    font-size: 3rem;
    color: #0056b3;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #003d82;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ========================================
   SOLUTIONS SECTION
   ======================================== */
.solutions {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #e8f0f7 100%);
}

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

.solution-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid #0056b3;
}

.solution-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 61, 130, 0.15);
}

.solution-icon {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.solution-card h3 {
    margin-bottom: 0.5rem;
    color: #003d82;
    font-size: 1.2rem;
}

.solution-card p {
    color: #666;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits {
    padding: 80px 0;
    background: white;
}

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

.benefit-item {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f5fa 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #0056b3;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 61, 130, 0.1);
}

.benefit-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #0056b3;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    margin-bottom: 0.5rem;
    color: #003d82;
    font-size: 1.2rem;
}

.benefit-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f0f7 0%, #f9f9f9 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(5, 86, 179, 0.2);
}

.submit-btn {
    background: #0056b3;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #003d82;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 61, 130, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-item i {
    font-size: 1.5rem;
    color: #0056b3;
    margin-top: 3px;
}

.info-item p {
    margin: 0;
    color: #333;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #b0b0b0;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.language-selector {
    display: flex;
    gap: 10px;
}

.language-btn {
    background: #0056b3;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-btn:hover {
    background: #ffc107;
    color: #003d82;
    transform: scale(1.1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #003d82;
        padding: 1rem;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.8rem 0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero {
        padding: 60px 0;
    }

    .features h2,
    .solutions h2,
    .benefits h2,
    .contact h2 {
        font-size: 2rem;
    }

    .features,
    .solutions,
    .benefits,
    .contact {
        padding: 50px 0;
    }

    .features-grid,
    .solutions-grid,
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .features h2,
    .solutions h2,
    .benefits h2,
    .contact h2 {
        font-size: 1.5rem;
    }

    .feature-icon,
    .solution-icon {
        font-size: 2rem;
    }

    .nav-menu {
        top: 65px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .info-item {
        padding: 1rem;
    }
}

/* ========================================
   RTL SUPPORT (Arabic)
   ======================================== */
html[dir="rtl"] .mobile-menu-btn {
    margin-right: auto;
}

html[dir="rtl"] .footer-bottom {
    flex-direction: column-reverse;
}

html[dir="rtl"] .solution-card {
    border-left: none;
    border-right: 4px solid #0056b3;
}

html[dir="rtl"] .benefit-item {
    border-left: none;
    border-right: 4px solid #0056b3;
}

html[dir="rtl"] .info-item {
    flex-direction: row-reverse;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.solution-card,
.benefit-item {
    animation: fadeIn 0.6s ease-out forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* ========================================
   SERVICE CARDS STYLING
   ======================================== */
.card-badge {
    display: inline-block;
    background: #0056b3;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.solution-card {
    position: relative;
}

.solution-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.solution-card ul li {
    margin: 0.5rem 0;
    padding-left: 0;
    color: #666;
}

.solution-card.featured {
    background: linear-gradient(135deg, #f0f5fa 0%, #e8f0f7 100%);
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.2);
}

.featured-badge {
    background: #ffc107 !important;
    color: #003d82 !important;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Print styles */
@media print {

    .header,
    .footer,
    .language-selector {
        display: none;
    }
}