/* Custom Animations and Overrides */
html, body {
    overflow-x: hidden;
    position: relative;
    max-width: 100%;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }


/* Timeline Connectors */
.timeline-connector {
    position: relative;
}
.timeline-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2rem; /* right side in RTL */
    width: 2rem;
    height: 2px;
    background: #E5E7EB;
    z-index: -1;
}
[dir="rtl"] .timeline-connector::after {
    left: auto;
    right: -2rem;
}
.timeline-connector:last-child::after {
    display: none;
}

/* Glass effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Service Card Hover */
.service-card {
    transition: all 0.4s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(6, 21, 42, 0.1);
    border-color: #da1622;
}
.service-card .icon-wrapper {
    transition: all 0.4s ease;
}
.service-card:hover .icon-wrapper {
    background-color: #da1622;
    color: white;
}

/* Animated Pattern Background */
.bg-pattern {
    background-image: radial-gradient(#06152a 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
}

/* Form inputs */
/* Brand Overlays */
.brand-wash {
    position: relative;
    overflow: hidden;
}
.brand-wash::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 29, 53, 0.4) 0%, rgba(211, 26, 44, 0.2) 100%);
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: opacity 0.5s ease;
}
.group:hover .brand-wash::after {
    opacity: 0.7;
}

.brand-border-premium {
    border: 8px solid white;
    box-shadow: 0 20px 50px -10px rgba(11, 29, 53, 0.3), 0 0 0 1px rgba(211, 26, 44, 0.1);
}

.brand-text-gradient {
    background: linear-gradient(135deg, #0B1D35 0%, #D31A2C 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

