/* Custom CSS for Willow River Automation - Modern Brand Design */

/* Import modern typography - Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Brand Palette - Modern Teal Theme */
:root {
    /* Primary Colors */
    --bs-primary: #00ACC1;
    --bs-primary-rgb: 0, 172, 193;
    --bs-primary-dark: #007A8C;
    --bs-primary-accent: #008EA3;
    
    /* Supporting Colors */
    --bs-secondary: #95A5A6;
    --bs-success: #198754;
    --bs-danger: #DC3545;
    --bs-warning: #F39C12;
    --bs-info: #5DADE2;
    
    /* Neutral Colors */
    --bs-light: #F8F9FA;
    --bs-dark: #212529;
    --bs-white: #FFFFFF;
    
    /* Teal Variations */
    --bs-teal-light: #E0F2F1;
    --bs-teal-lighter: #F0F9FF;
    
    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-headings: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Component Settings */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition-base: 250ms ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-base);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bs-dark);
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--bs-dark);
}

.display-4 {
    font-weight: 700;
    line-height: 1.2;
}

.display-5 {
    font-weight: 700;
    line-height: 1.25;
}

.display-6 {
    font-weight: 600;
    line-height: 1.3;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Accessibility Focus States */
*:focus {
    outline: 2px solid var(--bs-primary-accent);
    outline-offset: 2px;
}

/* Hero Section - Full Viewport with Animated Shapes */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 20h20v20h-20z' fill='%23ffffff' opacity='0.03'/%3E%3Cpath d='M60 60h20v20h-20z' fill='%23ffffff' opacity='0.05'/%3E%3Ccircle cx='80' cy='20' r='8' fill='%23ffffff' opacity='0.04'/%3E%3C/svg%3E") repeat;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* CTA Button Pulse Animation */
.btn-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.btn-pulse:hover {
    animation: none;
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Section Styling */
section {
    scroll-margin-top: 70px;
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 48px 0;
    }
}

/* Background Variations */
.bg-light-teal {
    background-color: var(--bs-teal-light);
}

.bg-teal-lighter {
    background-color: var(--bs-teal-lighter);
}

.bg-teal-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
}

/* Card Components */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Service Cards with Icon Hover Effects */
.service-card {
    height: 100%;
    position: relative;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background-color: var(--bs-primary-accent) !important;
    transform: scale(1.1);
}

.service-card:hover .service-icon i {
    color: white !important;
    transform: scale(1.2);
}

.service-icon i {
    transition: all var(--transition-base);
}

/* Button Styles */
.btn {
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-family-base);
    padding: 12px 30px;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--bs-primary-accent);
    border-color: var(--bs-primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.3);
    color: white;
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.2);
}

.btn-light {
    background-color: white;
    border-color: white;
    color: var(--bs-primary);
}

.btn-light:hover {
    background-color: var(--bs-light);
    border-color: var(--bs-light);
    color: var(--bs-primary-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navigation */
.navbar {
    font-family: var(--font-family-base);
    padding: 1rem 0;
    transition: all var(--transition-base);
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-dark) !important;
    text-decoration: none;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform var(--transition-base);
    border-radius: 4px;
    object-fit: contain;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background-color: white !important;
}

.nav-link {
    font-weight: 500;
    color: var(--bs-dark) !important;
    transition: color var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--bs-primary) !important;
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    height: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.pricing-card.featured {
    border: 2px solid var(--bs-primary);
    transform: scale(1.02);
}

.pricing-card.featured .card-header {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-accent));
    color: white;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-primary-accent));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.pricing-card:hover::before {
    opacity: 1;
}

/* Sticky CTA Button */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1040;
    border-radius: 50px;
    padding: 12px 24px;
    background: var(--bs-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    display: none;
}

.sticky-cta:hover {
    background: var(--bs-primary-accent);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

@media (min-width: 768px) {
    .sticky-cta {
        display: inline-flex;
        align-items: center;
    }
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-family: var(--font-family-base);
    transition: all var(--transition-base);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 172, 193, 0.25);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--bs-dark) !important;
    border-top: 1px solid rgba(0, 122, 140, 0.2);
    padding: 3rem 0 2rem;
}

footer a {
    transition: color var(--transition-base);
    text-decoration: none;
}

footer a:hover {
    color: var(--bs-primary) !important;
    text-decoration: none;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(100%);
    transition: filter var(--transition-base);
    border-radius: 4px;
    object-fit: contain;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-base);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--bs-primary);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--bs-primary);
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: 1030;
}

#backToTop:hover {
    background: var(--bs-primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 172, 193, 0.4);
}

/* Utility Classes */
.text-teal {
    color: var(--bs-primary) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.shadow-custom {
    box-shadow: var(--shadow-sm);
}

.shadow-custom-lg {
    box-shadow: var(--shadow-lg);
}

/* Loading Animation */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        min-height: 90vh;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2.25rem;
    }
    
    .hero-image-placeholder {
        margin-top: 2rem;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    section {
        padding: 48px 0;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-outline-primary {
        border-width: 3px;
    }
    
    .card {
        border: 1px solid var(--bs-dark);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section::before {
        animation: none;
    }
    
    .btn-pulse {
        animation: none;
    }
}
