/* ============================================
   Innomatica - Custom Styles & Animations
   Adapted from InnoScout with Innomatica colors
   ============================================ */

/* Page Load Animation */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.page-loaded {
    opacity: 1;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2E7DC5, #1B4B7A);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Header Scroll Effect */
header {
    transition: all 0.3s ease;
}

header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Animations */
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

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

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

/* Slide Animations */
.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

.animate-slide-down {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

/* Tilt Card Effect */
.tilt-card {
    transition: transform 0.15s ease;
    transform-style: preserve-3d;
}

/* Feature Cards Hover */
.feature-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 125, 197, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(46, 125, 197, 0.15);
}

/* Highlighted Card (InnoScout) */
.feature-card-highlight {
    border: 2px solid #2E7DC5;
    background: linear-gradient(to bottom, rgba(46, 125, 197, 0.03), transparent);
}

.feature-card-highlight:hover {
    box-shadow: 0 15px 50px rgba(46, 125, 197, 0.25);
}

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

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #2E7DC5, #1B4B7A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon Container Hover */
.icon-container {
    transition: all 0.3s ease;
}

.feature-card:hover .icon-container {
    transform: scale(1.1) rotate(5deg);
    background: #2E7DC5;
}

.feature-card:hover .icon-container svg {
    color: white;
}

/* Input Focus Effects */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(46, 125, 197, 0.2);
}

/* Logo Slogan */
.logo-slogan {
    opacity: 0.7;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Hero Background Pattern */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(46, 125, 197, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(27, 75, 122, 0.08) 0%, transparent 50%);
}

/* Link Underline Animation */
.link-animated {
    position: relative;
}

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

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

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

/* Selection Color */
::selection {
    background: rgba(46, 125, 197, 0.2);
    color: #333333;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2E7DC5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1B4B7A;
}

/* Badge Style */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.badge-primary {
    background: #2E7DC5;
    color: white;
}

/* Section Divider */
.section-divider {
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #2E7DC5, #1B4B7A);
    border-radius: 2px;
}

/* Contact Form Styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #2E7DC5;
    box-shadow: 0 0 0 3px rgba(46, 125, 197, 0.1);
}
