/* Main Styles for Muwonge Mining Limited Website */

/* Global Styles */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--vintage-cream);
    background-image: url('../images/vintage-texture.svg');
    background-attachment: fixed;
    background-size: cover;
}

/* Color Scheme - Vintage Gold Mining Theme */
:root {
    --primary-color: #b8860b; /* Dark Goldenrod */
    --secondary-color: #daa520; /* Goldenrod */
    --accent-color: #ffd700; /* Gold */
    --dark-color: #2c3e50; /* Dark Slate Gray */
    --light-color: #f8f9fa;
    --vintage-brown: #8b4513; /* Saddle Brown */
    --vintage-tan: #d2b48c; /* Tan */
    --vintage-cream: #fffdd0; /* Cream */
    --vintage-gold: #cfb53b; /* Old Gold */
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Gradients */
    --gold-gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --vintage-gradient: linear-gradient(to right, var(--vintage-brown), var(--vintage-gold));
}

/* Custom Button Styles */
.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);
}

.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);
}

/* Navbar Styles */
.navbar-dark {
    background-color: var(--dark-color) !important;
}

.navbar-brand {
    font-weight: 700;
    color: var(--accent-color) !important;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link.active {
    color: var(--accent-color) !important;
}

/* Header Styles */
.bg-dark {
    background-color: var(--dark-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Date-Time Display */
.datetime-display {
    background: var(--vintage-gradient);
    color: var(--vintage-cream);
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.datetime-display span {
    font-weight: 600;
}

/* Hero Slider Styles */
#hero-slider {
    margin-bottom: 2rem;
}

.hero-slide {
    height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.slide-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/gold-mining-1.svg');
}

.slide-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/gold-mining-2.svg');
}

.slide-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/environment-1.svg');
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: var(--vintage-gold);
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

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

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

/* Section Styles */
section {
    position: relative;
    overflow: hidden;
}

.section-heading {
    position: relative;
    margin-bottom: 2rem;
}

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

/* Card Styles - Vintage Look */
.card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    background-color: var(--vintage-cream);
    border-radius: 0.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--vintage-gold);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-left: 3px solid var(--primary-color);
}

.card-title {
    color: var(--vintage-brown);
    font-weight: 700;
    border-bottom: 1px solid var(--vintage-tan);
    padding-bottom: 0.5rem;
}

.card-body {
    position: relative;
}

.card-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, transparent 50%, var(--vintage-gold) 50%);
    opacity: 0.5;
}

/* Icon Box */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(184, 134, 11, 0.1);
    color: var(--primary-color);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.timeline-item-left .timeline-marker {
    right: -10px;
}

.timeline-item-right .timeline-marker {
    left: -10px;
}

/* Gallery Styles */
.gallery-section {
    background-color: var(--vintage-cream);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/vintage-texture.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.gallery-filters {
    position: relative;
    z-index: 1;
}

.gallery-item {
    margin-bottom: 30px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: var(--vintage-cream);
    transition: all 0.5s ease;
}

.gallery-card img {
    transition: all 0.5s ease;
    filter: saturate(0.9) contrast(1.1);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(184, 134, 11, 0.7), rgba(139, 69, 19, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-card {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

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

.gallery-info {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-info h5 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Testimonial Styles */
.testimonial-card {
    position: relative;
}

.testimonial-card:before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(184, 134, 11, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
}

footer h5 {
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .timeline:before {
        left: 40px;
    }
    
    .timeline-marker {
        left: 40px;
    }
    
    .timeline-item-left,
    .timeline-item-right {
        width: 100%;
        padding-left: 70px;
    }
}

/* Animation Styles */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mining-specific styles */
.mineral-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.mineral-card:hover {
    border-left-color: var(--accent-color);
}

/* Quote form styles */
.quote-form {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25);
}

/* Contact page map */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

/* Custom image frame */
.img-frame {
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Gold accent elements */
.gold-accent {
    position: relative;
}

.gold-accent:before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    opacity: 0.5;
    border-radius: 50%;
    z-index: -1;
}

/* Filter buttons for gallery */
.filter-button {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    margin: 0 5px 10px 0;
    transition: all 0.3s ease;
}

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

/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid white;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    color: white;
    text-align: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.lightbox-nav button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 20px;
}