/* Custom styles for Pulp Solutions website */

/* Brand Colors and Accessible Contrast */
:root {
    --bs-primary: #0D47A1;
    --bs-primary-rgb: 13, 71, 161;
}

.bg-primary {
    background-color: #0D47A1 !important;
}

.btn-primary {
    --bs-btn-bg: #0D47A1;
    --bs-btn-border-color: #0D47A1;
    --bs-btn-hover-bg: #0a3880;
    --bs-btn-hover-border-color: #082d66;
    --bs-btn-active-bg: #082d66;
    --bs-btn-active-border-color: #082d66;
}

.btn-outline-primary {
    --bs-btn-color: #0D47A1;
    --bs-btn-border-color: #0D47A1;
    --bs-btn-hover-bg: #0D47A1;
    --bs-btn-hover-border-color: #0D47A1;
    --bs-btn-active-bg: #0D47A1;
    --bs-btn-active-border-color: #0D47A1;
}

.btn-outline-light {
    --bs-btn-color: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-color: #0D47A1;
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #ffffff;
    --bs-btn-active-color: #0D47A1;
    --bs-btn-active-bg: #ffffff;
    --bs-btn-active-border-color: #ffffff;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    color: #0D47A1 !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}

.text-muted {
    color: #555c63 !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Responsive images and aspect ratio preservation */
img {
    max-width: 100%;
    height: auto;
}

.card-img,
.card-img-top,
.card-img-bottom {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

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

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

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

/* Links */
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Header sections */
header h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Timeline */
.timeline {
    position: relative;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

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

/* Footer */
footer {
    font-size: 0.95rem;
}

footer .h5,
footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

footer a:hover {
    color: #fff !important;
}

/* Feature icons */
.feature-icon {
    flex-shrink: 0;
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Shadow utilities enhancement */
.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* Smooth transitions for all interactive elements */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

/* Remove transition from elements that shouldn't have it */
*:not(a):not(button):not(.btn):not(.card):not(.nav-link) {
    transition: none;
}

/* Re-add transitions to specific elements */
a, button, .btn, .card, .nav-link {
    transition: all 0.3s ease;
}
