/* Custom CSS for Aurevia Energy Systems */

/* Configure Tailwind for custom colors */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Font family - Libre Baskerville serif */
body {
    font-family: 'Libre Baskerville', serif;
}

/* Custom color variables */
:root {
    --primary: #20423E;
    --secondary: #FF6B5A;
    --accent: #F4E4BC;
    --dark: #2C2C2C;
}

/* Custom classes */
.text-primary {
    color: var(--primary);
}

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

.text-secondary {
    color: var(--secondary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.bg-accent {
    background-color: var(--accent);
}

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

.border-secondary {
    border-color: var(--secondary);
}

/* Hover states */
.hover\:bg-primary:hover {
    background-color: #1a3834;
}

.hover\:bg-secondary:hover {
    background-color: #e55a4a;
}

.hover\:text-primary:hover {
    color: var(--primary);
}

.hover\:text-secondary:hover {
    color: var(--secondary);
}

/* Focus states */
.focus\:ring-primary:focus {
    --tw-ring-color: var(--primary);
}

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

/* Backdrop blur fallback */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Hero gradient overlay */
.hero-gradient {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #20423E 100%);
}

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

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Project cards */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
}

/* Navigation backdrop */
.nav-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(32, 66, 62, 0.1);
}

/* Button transitions */
button, .btn {
    transition: all 0.2s ease;
}

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

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.active {
    opacity: 1;
    max-height: 300px;
}

/* Section spacing */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Text shadows for better readability */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}