/* --- Wonja Brand Identity Styles --- */

/* 1. Variables & Typography */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Cairo:wght@400;600;700&display=swap');

:root {
    /* Logo Colors */
    --wonja-blue: #009fe3;      /* The core cyan/blue from the logo */
    --wonja-dark: #003366;      /* Deep navy for contrast */
    --wonja-light: #e6f7ff;     /* Very light blue for backgrounds */
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    
    /* Shapes */
    --radius-xl: 30px;          /* Logo is circular/rounded, so we use heavy rounding */
    --radius-md: 15px;
    
    /* Effects */
    --shadow-soft: 0 10px 30px rgba(0, 159, 227, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 159, 227, 0.2);
}

body {
    font-family: 'Nunito', sans-serif; /* Rounded, friendly font like the logo */
    color: var(--text-main);
    background-color: #f9fbfd;
    overflow-x: hidden;
}

/* Arabic Font Override */
body[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

/* 2. Header & Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    color: var(--wonja-blue) !important;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 700;
    margin: 0 12px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--wonja-blue) !important;
}

/* The "Dot" Animation (Inspired by the dot in the Logo's 'W') */
.nav-link::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--wonja-blue);
    border-radius: 50%;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: translateX(-50%) scale(1);
}

/* Updated Button Styles */
.btn-wonja {
    background: var(--wonja-dark); /* #003366 - Matches Hero Title */
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--wonja-dark);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
}

.navbar .btn-wonja {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    padding: 12px clamp(18px, 4vw, 35px);
}

.btn-wonja:hover {
    background: white;
    color: var(--wonja-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
}

.btn-outline-wonja {
    background: transparent;
    color: var(--wonja-blue);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--wonja-blue);
    transition: all 0.3s ease;
}

.btn-outline-wonja:hover {
    background: var(--wonja-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 159, 227, 0.3);
}

/* Product Page Specifics */
.product-card {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 159, 227, 0.2);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 25px;
    position: relative;
    z-index: 1;
    background: white;
}

.product-card .card-title {
    color: var(--wonja-dark);
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.product-card .card-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Badge Styling */
.product-card .badge {
    background-color: var(--wonja-blue) !important;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 159, 227, 0.3);
    top: 15px !important;
    right: 15px !important;
    left: auto !important; /* Ensure LTR default */
}

/* RTL Badge Support */
body[dir="rtl"] .product-card .badge {
    right: auto !important;
    left: 15px !important;
}

.product-price {
    color: var(--wonja-blue);
    font-weight: 800;
    font-size: 1.2rem;
}

/* Filter Buttons */
.btn-filter {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    color: #666;
    background: white;
    margin: 5px;
    transition: all 0.3s;
}

.btn-filter:hover, .btn-filter.active {
    border-color: var(--wonja-blue);
    background: var(--wonja-blue);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 159, 227, 0.2);
}
@media (max-width: 576px) {
    #filters { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; }
    #filters .btn-filter { padding: 6px 8px; font-size: 12px; margin: 0; border-radius: 16px; }
}

/* 3. Hero Section (The W Wave) */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    overflow: hidden;
    padding-top: 80px;
}

/* Abstract W shapes in background */
.hero-bg-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,159,227,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.shape-1 { top: -100px; right: -100px; }
.shape-2 { bottom: -100px; left: -100px; }

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--wonja-dark);
}

.hero-title span {
    color: var(--wonja-blue);
    display: inline-block;
    position: relative;
}

/* --- Hero Animation (Logo Inspired) --- */
.hero-animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    position: relative;
}

.logo-w-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orbits / Pulse Circles */
.orbit {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 159, 227, 0.3);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbit-pulse 4s infinite ease-in-out;
}

.orbit-1 { width: 100%; height: 100%; animation-delay: 0s; }
.orbit-2 { width: 80%; height: 80%; animation-delay: 1s; border-color: rgba(0, 159, 227, 0.5); }
.orbit-3 { width: 60%; height: 60%; animation-delay: 2s; border-color: rgba(0, 159, 227, 0.7); }

@keyframes orbit-pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
}

/* The Central W Shape */
.w-shape {
    width: 150px;
    height: 150px;
    background: var(--wonja-blue);
    border-radius: 50%; /* The Blue Circle background from the logo */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 50px rgba(0, 159, 227, 0.4);
    animation: w-float 6s ease-in-out infinite;
}

.w-shape svg {
    width: 80%;
    height: 80%;
}

.w-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw-w 3s ease-out forwards, glow-w 2s ease-in-out infinite alternate 3s;
}

.w-dot {
    opacity: 0;
    animation: fade-in-dot 0.5s ease-out forwards 2.5s;
}

@keyframes draw-w {
    to { stroke-dashoffset: 0; }
}

@keyframes fade-in-dot {
    to { opacity: 1; }
}

@keyframes glow-w {
    from { stroke-width: 8; stroke: white; }
    to { stroke-width: 10; stroke: #e6f7ff; }
}

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

/* Floating Particles */
.floating-tech-particle {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--wonja-dark);
    border-radius: 50%;
    opacity: 0.6;
}

.p1 { top: 10%; left: 20%; animation: float-p 5s infinite ease-in-out; }
.p2 { bottom: 20%; right: 10%; animation: float-p 7s infinite ease-in-out 1s; width: 10px; height: 10px; background: var(--wonja-blue); }
.p3 { top: 40%; right: -10%; animation: float-p 6s infinite ease-in-out 2s; width: 8px; height: 8px; background: #ccc; }

@keyframes float-p {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -15px); }
}

/* Wave Divider */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #FFFFFF;
}

/* 4. Cards & Capabilities (Premium Glass Tech) */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-weight: 800;
    color: var(--wonja-dark);
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
}

/* Underline representing the W curve */
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, var(--wonja-blue), #00c6ff);
    margin: 15px auto 0;
    border-radius: 10px;
}

.card-wonja {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 50px 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Gradient Border Effect on Hover */
.card-wonja::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--wonja-blue), #00c6ff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.card-wonja:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 159, 227, 0.25);
    background: white;
}

.card-wonja:hover::after {
    transform: scaleX(1);
}

/* Background Pattern */
.card-wonja::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,159,227,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.card-wonja:hover::before {
    opacity: 1;
}

.card-wonja h4 {
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--wonja-dark);
    font-size: 1.4rem;
}

.card-wonja p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Premium Icon */
.icon-wrapper {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    border-radius: 50%; /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--wonja-blue);
    font-size: 2.2rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 159, 227, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

/* Floating Icon Effect */
.card-wonja:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--wonja-blue) 0%, #007bb0 100%);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 159, 227, 0.3);
    border-color: transparent;
}

/* 5. Stats Section (Dark Navy Background) */
.stats-section {
    background: var(--wonja-dark); /* #003366 - Matches Hero Title */
    padding: 100px 0;
    color: white;
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

/* W Pattern Overlay */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.15) 15%, transparent 16%);
    background-size: 20px 20px;
    opacity: 0.2;
}

.stat-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s;
}

.col-md-3:hover .stat-icon-wrapper {
    transform: scale(1.2);
    color: white;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    display: block;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* 6. Timeline (W-Flow Style) */
.timeline-centered {
    position: relative;
    margin-bottom: 30px;
    padding: 20px 0;
}

/* Clearfix */
.timeline-centered::after {
    content: "";
    display: block;
    clear: both;
}

/* The Central Line - Gradient */
.timeline-centered:before {
    content: '';
    position: absolute;
    display: block;
    width: 6px;
    background: linear-gradient(to bottom, var(--wonja-light) 0%, var(--wonja-blue) 50%, var(--wonja-light) 100%);
    left: 50%;
    top: 0;
    bottom: 0;
    margin-left: -3px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 159, 227, 0.2);
}

.timeline-entry {
    position: relative;
    width: 50%;
    float: right;
    margin-bottom: 60px;
    clear: both;
}

.timeline-entry.left-aligned {
    float: left;
}

/* The Node (Mini W Logo) */
.timeline-entry .timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid var(--wonja-blue);
    border-radius: 50%;
    top: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px rgba(0, 159, 227, 0.2);
    transition: all 0.3s ease;
}

/* Inner Blue Dot */
.timeline-entry .timeline-icon::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--wonja-blue);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.timeline-entry:hover .timeline-icon {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(0, 159, 227, 0.3);
}

.timeline-entry.right-aligned .timeline-icon { left: -20px; }
.timeline-entry.left-aligned .timeline-icon { right: -20px; }

/* The Card Content */
.timeline-entry .timeline-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fbfdff 100%);
    padding: 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    margin-left: 50px;
    border: 1px solid rgba(0, 159, 227, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Connector Line (Curved W feel) */
.timeline-entry .timeline-content::before {
    content: '';
    position: absolute;
    top: 38px;
    left: -48px; /* Connect to center line */
    width: 48px;
    height: 2px;
    background: linear-gradient(to right, var(--wonja-blue), transparent);
    z-index: -1;
}

.timeline-entry.left-aligned .timeline-content {
    margin-left: 0;
    margin-right: 50px;
}

/* Flip Connector for Left Side */
.timeline-entry.left-aligned .timeline-content::before {
    left: auto;
    right: -48px;
    background: linear-gradient(to left, var(--wonja-blue), transparent);
}

.timeline-entry:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--wonja-blue);
}

.timeline-year {
    color: var(--wonja-blue);
    font-weight: 800;
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    position: relative;
}

/* Decorative W Underline for Year */
.timeline-year::after {
    content: '';
    display: block;
    width: 30px;
    height: 4px;
    background: var(--wonja-blue);
    border-radius: 10px;
    margin-top: 5px;
}

/* 7. Footer (Redesigned from Scratch) */
footer {
    background-color: #0b1120; /* Very Dark Navy */
    color: #94a3b8; /* Slate Gray Text */
    padding-top: 80px;
    padding-bottom: 30px;
    margin-top: 100px;
    position: relative;
    font-size: 0.95rem;
    border-top: 4px solid var(--wonja-blue); /* Top Accent Line */
}

/* Background Pattern */
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#1e293b 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

/* Logo Card */
.footer-brand-box {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.footer-logo-img {
    height: 40px;
    display: block;
}

.footer-text {
    line-height: 1.7;
    max-width: 300px;
}

/* Headings */
.footer-heading {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--wonja-blue);
    border-radius: 2px;
}

body[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}

/* Links List */
.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a::before {
    content: '\f105'; /* FontAwesome Angle Right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--wonja-blue);
    transition: margin 0.3s;
}

body[dir="rtl"] .footer-links a::before {
    content: '\f104'; /* Angle Left */
    margin-right: 0;
    margin-left: 8px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

body[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Contact List */
.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    width: 25px;
    color: var(--wonja-blue);
    font-size: 1.1rem;
}

/* Newsletter Form */
.footer-newsletter {
    position: relative;
    margin-top: 15px;
}

.footer-newsletter input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--wonja-blue);
    background: rgba(255,255,255,0.1);
}

.footer-newsletter button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--wonja-blue);
    color: white;
    border: none;
    border-radius: 6px;
    width: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

body[dir="rtl"] .footer-newsletter button {
    right: auto;
    left: 5px;
}

.footer-newsletter button:hover {
    background: white;
    color: var(--wonja-blue);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--wonja-blue);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* --- Products Page Adaptation --- */
.product-header {
    background: var(--wonja-dark);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    margin-top: -1px; /* Remove gap if any */
}

.product-header::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,159,227,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.product-header::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -50px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.product-card {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-soft);
}

.product-image-wrapper {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.filter-btn {
    border-radius: 50px;
    border-color: transparent;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-btn.active {
    background: var(--wonja-blue);
    box-shadow: 0 5px 15px rgba(0, 159, 227, 0.3);
}

.product-badge {
    border-radius: 50px;
}

.btn-details, .btn-custom {
    border-radius: 50px;
}

/* --- NEW SECTIONS STYLES --- */

/* 8. Global Reach Section */
.global-reach-section {
    background-color: #f9fbfd;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 50px auto 0;
}

#map {
    width: 100%;
    height: 60vh; /* Responsive height based on viewport */
    min-height: 500px;
    max-height: 750px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Responsive Map Heights */
@media (max-width: 991px) {
    .global-reach-section {
        padding: 60px 0;
    }
    #map {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .map-container {
        margin-top: 30px;
    }
    #map {
        height: 300px; /* Smaller height for mobile */
    }
}

/* JSVectorMap Customization to match Wonja Theme */
.jvm-container {
    background-color: transparent !important;
}

.jvm-region {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.jvm-tooltip {
    background-color: var(--wonja-dark);
    font-family: 'Nunito', sans-serif;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: 700;
}
/* Marker label as blue badge with white text */
#map text.jvm-label {
    fill: #ffffff !important;
    paint-order: stroke;
    stroke: var(--wonja-blue);
    stroke-width: 3px;
    font-weight: 800;
    font-size: clamp(11px, 1.8vw, 14px);
    dominant-baseline: central;
}
/* Make marker circle look like a small pin-dot */
#map circle.jvm-marker {
    fill: var(--wonja-dark) !important;
    stroke: var(--wonja-blue) !important;
    stroke-width: 2px !important;
}
/* Align anchor based on page direction */
body[dir="ltr"] #map text.jvm-label { text-anchor: start; }
body[dir="rtl"] #map text.jvm-label { text-anchor: end; }
@media (max-width: 991px) {
    #map text.jvm-label { font-size: 12px; }
}
@media (max-width: 767px) {
    #map text.jvm-label { font-size: 10px; }
}
@media (max-width: 480px) {
    #map text.jvm-label { font-size: 9px; }
}

/* 9. Innovation Hub Section */
.innovation-section {
    background-color: #0b1120;
    padding: 100px 0;
    color: white;
    position: relative;
}

.innovation-section .section-header h2 {
    color: white;
}

.innovation-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

.innovation-card:hover {
    background: rgba(0, 159, 227, 0.1);
    border-color: var(--wonja-blue);
    box-shadow: 0 0 30px rgba(0, 159, 227, 0.2);
    transform: translateY(-10px);
}

.neon-icon {
    font-size: 3rem;
    color: var(--wonja-blue);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 159, 227, 0.5);
    transition: all 0.3s;
}

.innovation-card:hover .neon-icon {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(0, 159, 227, 0.8), 0 0 40px rgba(0, 159, 227, 0.4);
    color: white;
}

.patent-count-display {
    font-size: 4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--wonja-blue);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.patent-count-display::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wonja-blue);
    width: 0%;
    overflow: hidden;
    white-space: nowrap;
    animation: fill-text 4s infinite alternate;
}

@keyframes fill-text {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* 10. Partners & Trust */
.partners-section {
    padding: 80px 0;
    background: white;
    overflow: hidden;
}

/* Static Partner Cards */
.partner-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--wonja-blue);
}

.partner-card i {
    color: var(--wonja-dark);
    transition: color 0.3s;
}

.partner-card:hover i {
    color: var(--wonja-blue);
}

.partner-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

/* Keep Slider for Certifications only if needed, otherwise reuse card style or keep slider */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-container::before, .slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.slider-track {
    display: flex;
    width: calc(200px * 14); /* Adjust based on number of slides */
    animation: scroll-partners 30s linear infinite;
}

.partner-logo {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 7)); } /* Half of total width */
}

/* 11. Future Outlook (Parallax) */
.future-section {
    position: relative;
    height: 600px;
    background-color: #0b1120; /* Fallback color */
    background-image: url('../images/factory-future.svg'); /* Placeholder needed */
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Overlay */
.future-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 17, 32, 0.7); /* Dark Navy Overlay */
}

.future-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.future-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.future-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* RTL Support */
/* Note: The center line position (left: 50%) is physical, so we keep margin-left: -3px */
body[dir="rtl"] .timeline-entry { float: left; }
body[dir="rtl"] .timeline-entry.left-aligned { float: right; }

body[dir="rtl"] .timeline-entry .timeline-content { 
    margin-left: 0; 
    margin-right: 50px; 
}
body[dir="rtl"] .timeline-entry.left-aligned .timeline-content { 
    margin-right: 0; 
    margin-left: 50px; 
}

/* Fix Icon Positions for RTL */
body[dir="rtl"] .timeline-entry.right-aligned .timeline-icon { left: auto; right: -20px; }
body[dir="rtl"] .timeline-entry.left-aligned .timeline-icon { right: auto; left: -20px; }

/* Fix Connectors for RTL */
body[dir="rtl"] .timeline-entry .timeline-content::before {
    left: auto;
    right: -48px;
    background: linear-gradient(to left, var(--wonja-blue), transparent);
}
body[dir="rtl"] .timeline-entry.left-aligned .timeline-content::before {
    right: auto;
    left: -48px;
    background: linear-gradient(to right, var(--wonja-blue), transparent);
}

body[dir="rtl"] .social-circle { margin-right: 0; margin-left: 10px; }

/* Responsive */
@media (max-width: 768px) {
    /* Timeline Mobile Fix */
    .timeline-centered::before {
        left: 20px;
    }
    
    .timeline-entry {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }
    
    .timeline-entry.left-aligned {
        float: none;
    }
    
    .timeline-entry .timeline-icon {
        left: 0 !important;
        right: auto !important;
    }
    
    /* Override for RTL Mobile */
    body[dir="rtl"] .timeline-centered::before {
        right: 20px;
        left: auto;
    }
    
    body[dir="rtl"] .timeline-entry .timeline-icon {
        right: 0 !important;
        left: auto !important;
    }
    
    .timeline-entry .timeline-content {
        margin-left: 60px;
        margin-right: 0;
    }
    
    body[dir="rtl"] .timeline-entry .timeline-content {
        margin-right: 60px;
        margin-left: 0;
    }
    
    .timeline-entry .timeline-content::before {
        left: -40px;
        width: 40px;
    }
    
    body[dir="rtl"] .timeline-entry .timeline-content::before {
        right: -40px;
        left: auto;
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .logo-w-wrapper {
        width: 250px; height: 250px;
    }
    
    .hero-animation-container {
        height: 300px;
        margin-bottom: 30px;
    }
    
    /* New Sections Responsive */
    .map-container {
        height: 300px;
    }
    
    .patent-count-display {
        font-size: 3rem;
    }
    
    .future-title {
        font-size: 2.5rem;
    }
}
