* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color: #0f172a;
    background: #f1f5f9;
    line-height: 1.6;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

/* Header & Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand {
    font-weight: 800;
    font-size: 28px;
    color: #0ea5a4;
    text-decoration: none;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #0ea5a4;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

[dir="rtl"] .menu-toggle {
    right: auto;
    left: 20px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #0ea5a4;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 14px;
}

.lang-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.lang-btn.active {
    background: #0ea5a4;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0ea5a4 0%, #14b8a6 100%);
    color: white;
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.spider-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #020617;
    overflow: hidden;
}

#spiderCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 24px;
    opacity: 0.95;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: white;
    color: #0ea5a4;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255,255,255,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 20px;
    color: #64748b;
    font-weight: 500;
}

/* Services Grid - Updated for 6 services in 2 rows */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(14,165,164,0.15);
    border-color: #0ea5a4;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 800;
    color: #0ea5a4;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: #f8fafc;
    padding: 28px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: #f0fdfa;
    border-color: #0ea5a4;
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.feature-card p {
    color: #64748b;
    font-size: 14px;
}

/* About Section */
.about-content {
    background: white;
    padding: 50px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.about-content p {
    font-size: 18px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 24px;
}

.mission-box {
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
    padding: 30px;
    border-radius: 12px;
    margin-top: 32px;
    border-left: 4px solid #0ea5a4;
}

.mission-box h3 {
    font-weight: 700;
    color: #0ea5a4;
    margin-bottom: 12px;
    font-size: 22px;
}

.mission-box p {
    color: #0f172a;
    font-size: 16px;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #0ea5a4;
    margin-bottom: 8px;
}

.stat-label {
    color: #64748b;
    font-weight: 600;
}

/* Contact Section */
.contact-content {
    background: white;
    padding: 50px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
}

.contact-item h4 {
    font-weight: 700;
    color: #0ea5a4;
    margin-bottom: 8px;
}

.contact-item p {
    color: #475569;
}


/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 40px;
    text-align: center;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-brand {
    font-size: 24px;
    font-weight: 800;
    color: #0ea5a4;
    margin-bottom: 12px;
}
.footer-tagline {
    color: #94a3b8;
    margin-bottom: 24px;
    font-size: 14px;
}
.footer-text {
    color: #64748b;
    font-size: 14px;
}


.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0ea5a4;
    text-decoration: underline;
}

.footer-links .separator {
    color: #475569;
    font-size: 14px;
}

/* Floating Language Switcher with Collapse Effect */
.floating-lang-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 12px;
    border-radius: 50px;
   
    z-index: 999;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-lang-switcher:not(:hover) {
    width: 60px;
    height: 60px;
    padding: 0;
}

/* Expand on hover */
.floating-lang-switcher:hover {
    width: auto;
    height: auto;
    padding: 12px;
}

[dir="rtl"] .floating-lang-switcher {
    left: 30px;
    right: auto;
}

.floating-lang-switcher .lang-btn {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    display: none;
}

/* Active button always visible */
.floating-lang-switcher .lang-btn.active {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0ea5a4;
    color: white;
    border-color: #0ea5a4;
    width: 60px;
    height: 60px;
    padding: 0;
    font-size: 32px;
    font-weight: 700;
    border-radius: 50%;
    line-height: 1;
}

/* Show all buttons on hover */
.floating-lang-switcher:hover .lang-btn {
    display: inline-block;
}

.floating-lang-switcher:hover .lang-btn.active {
    width: auto;
    height: auto;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 14px;
}

/* Hover effect for non-active buttons */
.floating-lang-switcher .lang-btn:not(.active):hover {
    background: #f1f5f9;
    border-color: none;
    color: #0ea5a4;
    transform: scale(1.05);
}

/* Staggered animation */
.floating-lang-switcher:hover .lang-btn:nth-child(1) {
    transition-delay: 0s;
}
.floating-lang-switcher:hover .lang-btn:nth-child(2) {
    transition-delay: 0.05s;
}
.floating-lang-switcher:hover .lang-btn:nth-child(3) {
    transition-delay: 0.1s;
}
.floating-lang-switcher:hover .lang-btn:nth-child(4) {
    transition-delay: 0.15s;
}
.floating-lang-switcher:hover .lang-btn:nth-child(5) {
    transition-delay: 0.2s;
}



.floating-lang-switcher:active,
.floating-lang-switcher:focus-within {
    width: auto !important;
    height: auto !important;
    padding: 12px !important;
}

.floating-lang-switcher:active .lang-btn,
.floating-lang-switcher:focus-within .lang-btn {
    display: inline-block !important;
}

.floating-lang-switcher:active .lang-btn.active,
.floating-lang-switcher:focus-within .lang-btn.active {
    width: auto !important;
    height: auto !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
}

/* Global Map Section */
.global-map {
    position: relative;
    width: 100%;
    height: 400px;
    background: radial-gradient(circle at center, #022c2c 0%, #011a1a 100%);
    overflow: hidden;
}

.global-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg') 
                center/contain no-repeat;
    opacity: 0.15;
    filter: brightness(0) saturate(100%) invert(61%) sepia(52%) saturate(617%) hue-rotate(126deg) brightness(94%) contrast(90%);
}

#mapCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

/* Screen Reader Only - for SEO H1 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   RESPONSIVE MOBILE STYLES
   ======================================== */

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 16px 20px;
    }
    
    .brand {
        font-size: 24px;
    }
    
    /* Show mobile menu toggle */
    .menu-toggle {
        display: flex;
    }
    
    /* Mobile Menu Styles */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -4px 0 12px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    [dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
    }
    
    [dir="rtl"] .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        color: #0f172a;
        font-size: 18px;
        display: block;
    }
    
    .nav-menu a:hover {
        color: #0ea5a4;
        padding-left: 8px;
    }
    
    [dir="rtl"] .nav-menu a:hover {
        padding-left: 0;
        padding-right: 8px;
    }
    
    /* Mobile Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hero Section */
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h2 {
        font-size: 20px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    /* Sections */
    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* About & Contact */
    .about-content,
    .contact-content {
        padding: 30px 20px;
    }
    
    .about-content p {
        font-size: 16px;
    }
    
    .mission-box {
        padding: 20px;
    }
    
    .mission-box h3 {
        font-size: 20px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 24px;
    }
    
    /* Stats */
    .stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    /* Footer */
    .footer {
        padding: 30px 20px;
    }
    
    .footer-brand {
        font-size: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links .separator {
        display: none;
    }
    
    /* Floating Language Switcher */
    .floating-lang-switcher {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    
    .floating-lang-switcher:hover {
        width: auto;
        height: auto;
    }
    
    .floating-lang-switcher .lang-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .floating-lang-switcher .lang-btn.active {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    
    .floating-lang-switcher:hover .lang-btn.active {
        font-size: 13px;
    }
    
    [dir="rtl"] .floating-lang-switcher {
        left: 20px;
        right: auto;
    }
    
    /* Global Map */
    .global-map {
        height: 300px;
    }
    
    
    .floating-lang-switcher {
        background: transparent;
        box-shadow: none;
    }
    
    .floating-lang-switcher .lang-btn {
        border: none;
        box-shadow: 0 4px 12px rgba(14,165,164,0.3);
    }
    
    .floating-lang-switcher .lang-btn.active {
        border: none;
        box-shadow: 0 4px 12px rgba(14,165,164,0.3);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero h2 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .nav-menu {
        width: 100%;
    }
}