/* Custom Styles for Inventrics Technologies */

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

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-pulse-slow {
    animation: pulse 2s infinite;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom button styles */
.btn-primary {
    background: transparent;
    border: 2px solid #FE0166;
    color: #FE0166;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: rgba(254, 1, 102, 0.15);
    color: #FE0166;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(254, 1, 102, 0.2);
}

/* Header background opacity */
.header-bg {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

/* Mega menu styles */
.mega-menu {
    min-width: 600px;
    padding: 2rem;
}

.mega-menu h3 {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.mega-menu a {
    transition: color 0.3s ease;
}

.mega-menu a:hover {
    color: #FE0166 !important;
    background: transparent !important;
}

/* Page padding */
.page-padding {
    padding: 5px 10px;
}

/* Button styles for all pages */
.cta-button {
    background: transparent;
    border: 2px solid #FE0166;
    color: #FE0166;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(254, 1, 102, 0.15);
    color: #FE0166;
}

.cta-button-white {
    background: transparent;
    border: 2px solid #FE0166;
    color: #FE0166;
    transition: all 0.3s ease;
}

.cta-button-white:hover {
    background: rgba(254, 1, 102, 0.15);
    color: #FE0166;
}

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

.service-card:hover {
    border-color: #FE0166;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Process step connectors */
.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FE0166 0%, #E8F4F8 100%);
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* Hero section background */
.hero-bg {
    background: linear-gradient(135deg, #032B43 0%, #1a4a6b 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-input:focus {
    border-color: #FE0166;
    box-shadow: 0 0 0 3px rgba(254, 1, 102, 0.1);
}

/* Success/Error messages */
.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

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

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

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

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

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

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

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

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

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #FE0166;
    outline-offset: 2px;
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Responsive typography */
@media (max-width: 640px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}

/* Custom utility classes */
.text-gradient {
    background: linear-gradient(135deg, #FE0166 0%, #E6005C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #FE0166 0%, #E6005C 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #032B43 0%, #1a4a6b 100%);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom shadows */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Border radius utilities */
.rounded-custom {
    border-radius: 1rem;
}

.rounded-custom-lg {
    border-radius: 1.5rem;
}

/* Spacing utilities */
.space-y-custom > * + * {
    margin-top: 2rem;
}

.space-x-custom > * + * {
    margin-left: 2rem;
}

/* Grid utilities */
.grid-cols-auto {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Flex utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Position utilities */
.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Z-index utilities */
.z-60 {
    z-index: 60;
}

.z-70 {
    z-index: 70;
}

.z-80 {
    z-index: 80;
}

.z-90 {
    z-index: 90;
}

.z-100 {
    z-index: 100;
} 