/* ===================================
   Trust Scientific Website Styles
   =================================== */

/* Color Palette */
:root {
    --primary-color: #1D4354;
    --secondary-color: #29808C;
    --accent-color: #5BC0DE;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F8F8;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

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

html {
    scroll-behavior: smooth;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
}

.language-toggle button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

.language-toggle button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

/* Navigation */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--white) !important;
    box-shadow: 0 2px 10px var(--shadow);
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white);
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.stat-card {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    margin: 0;
}

/* NMR Section & Products */
.nmr-section {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.nmr-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: justify;
}

.nmr-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.nmr-products-list .list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.nmr-products-list .list-group-item:hover {
    background-color: var(--bg-light);
    transform: translateX(-5px);
}

html[lang="en"] .nmr-products-list .list-group-item:hover {
    transform: translateX(5px);
}

.text-accent {
    color: var(--accent-color);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: justify;
}

.vision-mission {
    margin-top: 30px;
}

.vm-item {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-right: 4px solid var(--secondary-color);
}

.vm-item h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Clients Section */
.clients-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.client-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
    height: 100%;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.client-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.client-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-form {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.contact-form label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-form .form-control {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 12px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(41, 128, 140, 0.25);
}

.contact-info {
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-left: 20px;
    flex-shrink: 0;
}

.contact-item h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.2rem; }
}

@media (max-width: 767px) {
    .hero-section { padding: 120px 0 80px; }
    .hero-title { font-size: 1.8rem; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 25px; bottom: 20px; left: 20px; }
    .language-toggle { top: 10px; left: 10px; }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Product Details Styles */
.w-40 { width: 40%; }

.table th {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(0,0,0,0.02);
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
}

.rounded { border-radius: 10px !important; }
.shadow { box-shadow: 0 5px 20px var(--shadow) !important; }

/* English Language Adjustments */
html[lang="en"] { direction: ltr; }
html[lang="en"] body { text-align: left; }
html[lang="en"] .language-toggle { left: auto; right: 20px; }
html[lang="en"] .whatsapp-float { left: auto; right: 30px; }
html[lang="en"] .nmr-guarantee, html[lang="en"] .vm-item { border-right: none; border-left: 4px solid var(--secondary-color); }
html[lang="en"] .contact-item i { margin-left: 0; margin-right: 20px; }
html[lang="en"] .footer-links a:hover { padding-right: 0; padding-left: 5px; }

/* Arrow Rotation based on Lang */
html[lang="ar"] .nmr-products-list .bi-arrow-left-circle-fill { transform: rotate(0deg); }
html[lang="en"] .nmr-products-list .bi-arrow-left-circle-fill { transform: rotate(180deg); }
/* Add this to style.css */

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: var(--secondary-color);
}

.hover-card .card-title {
    transition: color 0.3s ease;
}

.hover-card:hover .card-title {
    color: var(--secondary-color) !important;
}

/* Ensure navbar doesn't overlap on anchor jump */
section {
    scroll-margin-top: 100px;
}

/* Search dropdown: container position + show/hide */
.search-container {
    position: relative;
}
.search-results-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: 0 4px 12px var(--shadow);
}
.search-results-dropdown.search-results-visible {
    display: block;
}
.search-result-item {
    display: block;
    padding: 10px 12px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: var(--bg-light);
}
html[lang="ar"] .search-results-list {
    text-align: right;
}

