/* Custom CSS for Amana FTX TMC Landing Page */

/* Smooth animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.8s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

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

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

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

/* Custom gradient backgrounds */
.bg-gradient-amana {
    background: linear-gradient(135deg, #4a5568 0%, #718096 50%, #4a5568 100%);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #ff7f00 0%, #ff9933 50%, #ff7f00 100%);
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff7f00 0%, #ff9933 100%);
    box-shadow: 0 4px 15px rgba(255, 127, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 127, 0, 0.4);
}

/* Enhanced card hover effects */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

/* Navigation enhancements */
.nav-sticky {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
}

/* Hero section enhancements */
.hero-bg {
    background: linear-gradient(135deg, #4a5568 0%, #718096 50%, #2d3748 100%);
    position: relative;
    overflow: hidden;
}

/* Blended hero section */
.hero-blended {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.hero-blended::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

/* Smooth gradient blends */
.gradient-blend-left {
    background: linear-gradient(to right, 
        #2d3748 0%,
        #4a5568 30%,
        rgba(74, 85, 104, 0.9) 60%,
        rgba(74, 85, 104, 0.7) 80%,
        transparent 100%
    );
}

.gradient-blend-right {
    background: linear-gradient(to left, 
        transparent 0%,
        rgba(74, 85, 104, 0.3) 20%,
        rgba(74, 85, 104, 0.6) 50%,
        rgba(74, 85, 104, 0.8) 80%,
        #4a5568 100%
    );
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

/* Form styling enhancements */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #ff7f00;
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.1);
    outline: none;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff7f00;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification styles */
.notification {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-left: 4px solid currentColor;
}

/* Trust indicators styling */
.trust-indicator {
    transition: all 0.3s ease;
}

.trust-indicator:hover {
    transform: scale(1.05);
}

/* Service icons with background patterns */
.service-icon {
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-icon:hover::before {
    opacity: 1;
    left: 100%;
}

/* Responsive typography */
@media (max-width: 768px) {
    .text-responsive-xl {
        font-size: 1.5rem;
    }
    
    .text-responsive-2xl {
        font-size: 1.875rem;
    }
    
    .text-responsive-3xl {
        font-size: 2.25rem;
    }
    
    .text-responsive-4xl {
        font-size: 2.5rem;
    }
}

/* Enhanced focus states for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #ff7f00;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .bg-gradient-to-br,
    .bg-gradient-to-r,
    .bg-amana-blue,
    .bg-amana-dark {
        background: #fff !important;
        color: #000 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #f9fafb;
        border: 1px solid #d1d5db;
    }
    
    .text-gray-600 {
        color: #374151;
    }
    
    .text-gray-700 {
        color: #1f2937;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (future implementation) */
@media (prefers-color-scheme: dark) {
    .dark-mode-support {
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* Custom utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo styling for black background logos */
.amana-logo {
    /* Ensure good contrast and visibility */
    background: transparent;
    border-radius: 4px;
    /* Mix blend mode to help with black background */
    mix-blend-mode: normal;
}

/* Navigation logo - smaller to show tagline */
.amana-logo-nav {
    height: 28px;  /* Even smaller for navigation to ensure tagline shows */
    width: auto;
    max-width: 240px; /* Constrain width to ensure tagline visibility */
}

/* Footer logo - appropriate size for footer */
.amana-logo-footer {
    height: 36px;  /* Medium size for footer */
    width: auto;
    max-width: 280px; /* Ensure tagline is visible */
}

/* For logos with black backgrounds on white sections */
.logo-on-white {
    /* Add very subtle white padding around logo if needed */
    padding: 2px 4px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

/* For logos on dark backgrounds - should work well */
.logo-on-dark {
    /* Black background logo works great on dark backgrounds */
    background: transparent;
}

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

.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Mobile menu animations */
.mobile-menu-enter {
    transform: translateY(-100%);
    opacity: 0;
}

.mobile-menu-enter-active {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease-out;
}

.mobile-menu-exit {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-exit-active {
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease-in;
}

/* Contact form styling */
.contact-form-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Success states */
.success-state {
    color: #059669;
    background-color: #d1fae5;
    border-color: #10b981;
}

.error-state {
    color: #dc2626;
    background-color: #fee2e2;
    border-color: #ef4444;
}

/* Loading states */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom scrollbar for webkit browsers */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ff7f00;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #e56500;
}