/* ===================================
   URU PROJECTS TANZANIA LTD
   Medical Equipment Supplier Website
   Custom Stylesheet
   =================================== */

/* Color Variables from Logo */
:root {
    --primary-navy: #2B3A7C;
    --secondary-gray: #7A7A7A;
    --dark-navy: #1E2850;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --success: #28A745;
    --border-color: #DEE2E6;
}

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

body {
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-navy);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 20px auto 0;
}

/* Buttons */
.btn-primary {
    background: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--dark-navy);
    border-color: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 58, 124, 0.3);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.navbar-brand span {
    color: var(--secondary-gray);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-navy);
}

.navbar-nav .btn-primary {
    padding: 8px 20px;
    margin-left: 15px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-navy) 100%);
    color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%23ffffff" fill-opacity="0.05" d="M0,50 Q300,100 600,50 T1200,50 L1200,0 L0,0 Z"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .btn {
    margin: 10px;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-title {
    color: var(--primary-navy);
    font-weight: 600;
}

.card-text {
    color: var(--text-muted);
}

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

.service-card:hover {
    border-color: var(--primary-navy);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(43, 58, 124, 0.2);
}

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

.service-card h4 {
    color: var(--primary-navy);
    margin-bottom: 15px;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Product Grid */
.product-item {
    margin-bottom: 30px;
}

.product-category-filter {
    margin-bottom: 40px;
    text-align: center;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 25px;
    margin: 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
}

/* Project Gallery */
.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.project-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 58, 124, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4 {
    color: var(--white);
    margin-bottom: 10px;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.9);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 30px;
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--primary-navy);
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h5 {
    margin: 0;
    color: var(--primary-navy);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Blog Section */
.blog-card {
    margin-bottom: 30px;
}

.blog-card .card-body {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-meta i {
    color: var(--primary-navy);
    margin-right: 5px;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-control {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 0.2rem rgba(43, 58, 124, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Contact Info */
.contact-info-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.contact-info-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-info-card h5 {
    color: var(--primary-navy);
    margin-bottom: 10px;
}

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

.footer h5 {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--white);
}

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

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

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    transform: translateX(5px);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

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

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

/* Certifications */
.certification-badge {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    border: 2px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.certification-badge:hover {
    border-color: var(--primary-navy);
    transform: translateY(-5px);
}

.certification-badge img {
    height: 80px;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .navbar-nav .btn-primary {
        margin-left: 0;
        margin-top: 10px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

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

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

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-navy);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-navy);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--dark-navy);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}
