:root {
    --primary: #1e3a8a; /* Deep Navy */
    --primary-light: #2563eb;
    --secondary: #0f172a; /* Slate 900 */
    --accent: #38bdf8; /* Light Blue */
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Nav */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}
.logo span {
    color: var(--primary-light);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-light);
}

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 6px;
}
.btn-nav:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    padding: 10px 0;
}
.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 120px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-menu a {
    padding: 10px 15px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}
.lang-menu a:hover {
    background: var(--bg-light);
}
.lang-menu a.active {
    color: var(--primary-light);
    font-weight: 600;
    background: #eff6ff;
}

/* Hero */
#hero {
    padding: 160px 20px 100px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.75) 100%), url('assets/hero-bg.png') center/cover no-repeat;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.subtitle {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

#hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-desc {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 40px;
}

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

.primary-btn {
    background: var(--primary-light);
    color: var(--white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.primary-btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.secondary-btn {
    background: transparent;
    color: var(--white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--white);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.secondary-btn:hover {
    background: var(--white);
    color: var(--secondary);
}

/* Trusted By */
#trusted {
    padding: 40px 20px;
    background: var(--white);
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.trusted-title {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.logo-marquee {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Sections */
section {
    padding: 100px 20px;
}

.bg-light {
    background: var(--bg-light);
}

/* Services Tabs Architecture */
.services-tab-container {
    max-width: 900px;
    margin: 0 auto;
}

.services-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.tab-btn {
    background: var(--primary-light); /* Clean Royal Blue default */
    color: var(--white);
    border: 1px solid var(--primary-light);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--secondary); /* Slate 900 for active state */
    color: var(--accent); /* Light Blue accent text for contrast and pop */
    border-color: var(--secondary);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
}

.service-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.service-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Services Grid Reversion */
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}
.service-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

/* Accordion Testimonials */
.toggle-testimonials-btn {
    width: 100%;
    margin-top: 20px;
    font-size: 0.95rem;
    padding: 10px 15px;
    border-color: #cbd5e1;
    color: var(--text-main);
    justify-content: center;
}
.toggle-testimonials-btn:hover {
    background: var(--bg-light);
    color: var(--primary-light);
    border-color: var(--primary-light);
}
.hidden-testimonials {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    margin-top: 0;
}
.hidden-testimonials.open {
    max-height: 5000px;
    opacity: 1;
    margin-top: 20px;
}

.testimonials-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.testimonials-vertical .inline-quote {
    font-size: 0.85rem;
    padding: 15px;
    background: var(--white);
    border-left: 3px solid var(--accent);
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.testimonials-vertical .inline-quote footer {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--secondary);
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary-light);
    border-radius: 2px;
}

/* Inline Testimonials */
.testimonials-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.inline-quote {
    background: var(--white);
    padding: 20px;
    border-left: 4px solid var(--primary-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-main);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin: 0;
}

.inline-quote footer {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    font-style: normal;
}

/* Timeline */
.timeline {
    max-width: 800px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 0 4px var(--bg-light);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.timeline-content h3 {
    color: var(--secondary);
    font-size: 1.1rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* About */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats-row {
    display: flex;
    gap: 40px;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
}

/* Contact */
.contact-form {
    display: flex;
    flex-direction: column;
}

/* Infinite Marquee */
.scrolling-text-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: #f1f5f9;
    padding: 12px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.scrolling-text-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.scrolling-text-content:hover {
    animation-play-state: paused;
}

.scrolling-text-content span {
    margin: 0 3px;
    color: var(--secondary);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Resource Center Items */
.resource-file-item {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px 12px; 
    margin-bottom: 8px; 
    background: var(--white); 
    border: 1px solid #e2e8f0; 
    border-radius: 6px; 
    text-decoration: none; 
    color: var(--text-main); 
    font-size: 0.9rem; 
    transition: var(--transition);
}

.resource-file-item:last-child {
    margin-bottom: 0;
}

.resource-file-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.resource-file-item .file-icon {
    color: #ef4444; 
    font-size: 1.2rem;
}

.resource-file-item .file-name {
    flex: 1; 
    font-weight: 500;
}

.resource-file-item .download-icon {
    color: #94a3b8; 
    font-size: 0.85rem;
    transition: var(--transition);
}

.resource-file-item:hover .download-icon {
    color: var(--primary-light);
}

/* Profile Picture */
.profile-inline-img {
    float: left;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 25px;
    margin-bottom: 15px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 3px solid var(--primary-light);
}

html[dir="rtl"] .profile-inline-img {
    float: right;
    margin-right: 0;
    margin-left: 25px;
}

/* Responsive */
@media(max-width: 768px) {
    #hero h1 { font-size: 2.5rem; }
    .about-container, .service-detailed-block { flex-direction: column; }
    .testimonials-row { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
