/**
 * PSIC Website Styles
 * Power Solutions Innovations Corporation
 */

:root {
    --primary-color: #22a34e;
    --primary-dark: #1a7f3d;
    --primary-light: #34d058;
    --secondary-color: #0066cc;
    --accent-color: #ffc107;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Header */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

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

.btn-cta {
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}

/* Hero Section with Video Background */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-section h1,
.hero-section .display-3 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-section p,
.hero-section .lead {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-image {
    max-height: 400px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-video,
    .hero-text-overlay {
        display: none;
    }
    .hero-section {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-light .breadcrumb-item.active {
    color: white;
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.bg-primary-soft {
    background-color: rgba(34, 163, 78, 0.1);
}

/* Icon Box */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box-lg {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box-xl {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards */
.card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Product Cards */
.product-card .card-img-top {
    border-radius: 12px 12px 0 0;
}

.product-image {
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Process Steps */
.process-step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

footer .footer-link:hover {
    color: white !important;
}

footer .text-success {
    color: var(--primary-color) !important;
}

/* Bootstrap Primary Color Overrides - Eco Green */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

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

/* Badge */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Links */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-dark);
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .btn {
        margin-bottom: 0.5rem;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .min-vh-75 {
        min-height: 60vh;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .btn-cta {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .icon-box {
        width: 50px;
        height: 50px;
    }

    /* Hide video on mobile for better performance */
    .hero-video,
    .hero-text-overlay {
        display: none;
    }

    .hero-section {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    }

    .hero-section h1,
    .hero-section .display-3,
    .hero-section p,
    .hero-section .lead {
        text-shadow: none;
    }

    .min-vh-75 {
        min-height: auto;
    }

    .hero-section .display-3 {
        font-size: 2rem;
    }

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

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

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

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(34, 163, 78, 0.15);
}

/* Tables */
.table th {
    font-weight: 600;
    white-space: nowrap;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
}

/* Product Gallery */
.product-gallery .main-image {
    min-height: 300px;
}

.thumbnail-item {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.thumbnail-item:hover {
    opacity: 1;
}

/* Application Cards */
.application-card {
    border-left: 4px solid var(--primary-color);
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(34, 163, 78, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(34, 163, 78, 0.2);
}

/* Success Icon */
.success-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}
