/* Twin Star Energy - Craftsman Elegance Styles */

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation enhancements */
.nav-shadow {
    box-shadow: 0 2px 20px rgba(139, 69, 19, 0.1);
}

/* Hero section animations */
.hero-animate {
    animation: fadeInUp 1s ease-out;
}

.hero-animate-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::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-primary:hover::before {
    left: 100%;
}

/* Card animations */
.service-card {
    transition: all 0.3s ease;
    transform-origin: center bottom;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.2);
}

/* Form styling */
.form-input {
    position: relative;
}

.form-input input:focus,
.form-input textarea:focus,
.form-input select:focus {
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
    border-color: #DAA520;
}

/* Testimonial card styling */
.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Loading animation */
.loading {
    animation: pulse 2s infinite;
}

/* Mobile menu animations */
.mobile-menu-enter {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A0522D;
}

/* Image optimizations */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Footer animations */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #DAA520;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Cookie banner styling */
#cookie-consent-banner {
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

#cookie-consent-banner.hidden {
    transform: translateY(100%);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility improvements */
.focus-visible:focus {
    outline: 2px solid #DAA520;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000;
    }
    
    .text-gray-700 {
        color: #000;
    }
}