/* Enhanced UI styles for Laridae Supply Chain - Transport Theme */

/* Color Variables for Transport Theme */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-green: #10b981;
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --text-dark: #334155;
    --text-light: #64748b;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    color: white;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-green));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

/* Navbar */


/* Hero Header */


/* Services Cards */
.card {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Service Images */
.service-thumb-wrapper {
    min-width: 96px;
    min-height: 96px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.service-thumb-wrapper:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.service-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Typography improvements */
h1, h2, h3, h4, h5 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

p, span, label {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #555;
}

/* Footer */
.footer {
    background: #222;
    color: #bbb;
    font-size: 14px;
    padding-top: 40px;
    padding-bottom: 20px;
}

.footer a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #007bff;
}

/* Advanced Animations */

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.6s ease forwards;
}

.bounce-in {
    animation: bounceIn 1s ease forwards;
}

/* Parallax effect for hero section */
.hero-header {
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    z-index: -1;
}

/* Floating animation for service icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-icon-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation for call-to-action buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Testimonial card hover effects */
.testimonial-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.testimonial-card:hover .testimonial-image {
    transform: scale(1.1);
}

.testimonial-image {
    transition: transform 0.3s ease;
}

/* Team member hover effects */
.team-member {
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member:hover .team-image {
    transform: scale(1.05);
}

.team-image {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.team-image img {
    transition: transform 0.3s ease;
}

.team-member:hover .team-image img {
    transform: scale(1.1);
}

/* Scroll-triggered animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio Styles */
.portfolio-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.9);
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.filter-btn.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Enhanced testimonial and team card styles */
.testimonial-card, .team-member {
    transition: all 0.3s ease;
}

.testimonial-card:hover, .team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .hero-header {
        padding-top: 100px;
        text-align: center;
    }
}
