/* Custom Styles for Forestry Contracting Website */

:root {
    --primary-color: #ff0021;  /* Bright Red */
    --secondary-color: #0052A5; /* Bright Blue */
    --accent-color: #ffffff;    /* White */
    --tertiary-color: #DC143C;  /* Bright Red for accents */
    --dark-color: #0052A5;      /* Bright Blue for dark sections */
    --light-color: #ffffff;     /* Pure white for light sections */
    --text-dark: #1a1a1a;       /* Dark text */
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: #2a2a2a !important; /* Dark greyish-black */
    border-bottom: 3px solid #DC143C; /* Red border separator */
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff !important;
}

.navbar-brand i {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
    color: #ffffff !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.nav-link:hover {
    color: rgb(206, 82, 82) !important;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.nav-link.active {
    color: rgb(206, 82, 82) !important;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Hero Section - Background Image */
.hero-section {
    background-image: url('../images/IMG_0807.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 56px;
    position: relative;
    overflow: hidden;
}

/* Dark overlay for better text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

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

.hero-section h1,
.hero-section p,
.hero-section .lead {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: #ffffff !important;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3) !important; /* Red shadow */
    border-top-color: var(--secondary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.service-card:nth-child(2) .service-icon {
    color: var(--secondary-color); /* Blue */
}

.service-card:nth-child(3) .service-icon {
    color: var(--primary-color); /* Red */
}

/* Gallery Section */
.filter-btn {
    margin: 0 5px 10px;
    transition: all 0.3s ease;
}

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

.gallery-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.hide {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 250px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    padding: 20px;
}

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

.gallery-overlay h4 {
    margin-bottom: 10px;
}

.gallery-overlay p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-info i {
    font-size: 1.2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25); /* Red shadow */
}

.form-label {
    font-weight: 500;
}

/* Button Styles */
.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-danger:hover {
    background-color: #B8112E; /* Darker Red */
    border-color: #B8112E;
}

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

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Alert Messages */
.alert-success {
    animation: slideIn 0.3s ease;
}

.alert-danger {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    margin-top: 0;
    background-color: #0052A5 !important; /* Bright Blue */
}

footer a:hover {
    text-decoration: underline !important;
    color: #DC143C !important; /* Red on hover */
}

/* Modal */
.modal-xl {
    max-width: 95vw;
}

#modalImage {
    max-height: 90vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-body {
    padding: 0;
}

.modal-content {
    background-color: #000;
    border: none;
}

.modal-header {
    background-color: #2a2a2a;
    color: #fff;
    border-bottom: 2px solid #DC143C;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .gallery-card {
        height: 200px;
    }
}

/* Smooth Scrolling Offset for Fixed Navbar */
section {
    scroll-margin-top: 70px;
}

/* Loading Animation */
.btn:disabled {
    cursor: not-allowed;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* American-themed section backgrounds */
.bg-light {
    background-color: #ffffff !important; /* Pure white */
}

.bg-dark {
    background-color: #254660 !important; /* Bright Blue */
}

/* Text colors for American theme */
.text-danger {
    color: #DC143C !important; /* Bright Red */
}

.text-primary {
    color: #0052A5 !important; /* Bright Blue */
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Additional American-themed styling */
.bi-check-circle-fill {
    color: #DC143C !important; /* Red for checkmarks */
}

.bi-exclamation-triangle-fill,
.bi-lightning-charge-fill,
.bi-tools {
    color: #DC143C !important; /* Red for icons */
}

/* Alternating service card icon colors for patriotic effect */
.service-card:nth-child(1) .service-icon {
    color: #DC143C; /* Red */
}

.service-card:nth-child(2) .service-icon {
    color: #0052A5; /* Blue */
}

.service-card:nth-child(3) .service-icon {
    color: #DC143C; /* Red */
}

.service-card:nth-child(4) .service-icon {
    color: #0052A5; /* Blue */
}

.service-card:nth-child(5) .service-icon {
    color: #DC143C; /* Red */
}

.service-card:nth-child(6) .service-icon {
    color: #0052A5; /* Blue */
}

