/* Global Styles & Variables */
:root {
    --primary: #4B1A79;
    --secondary: #008891;
    --accent: #FF7B00;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Animations & Effects */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Refinements */
.glass-nav {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), background 250ms ease;
}

/* Hover Effects */
.hover-lift {
    transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(75, 26, 121, 0.15);
    border-color: rgba(75, 26, 121, 0.1);
}

/* Button Micro-interactions */
.btn-primary {
    transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, filter 200ms ease, opacity 200ms ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease-out;
}

.btn-primary:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

/* Subtle Icon Bounce on hover for service cards */
.group:hover .lucide {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Smooth fade in for dropdowns */
.dropdown-animate {
    animation: fadeInDown 200ms var(--ease-out) forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Restored Hero Animations */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(75, 26, 121, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(75, 26, 121, 0); }
    100% { box-shadow: 0 0 0 0 rgba(75, 26, 121, 0); }
}

.floating-icon {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Premium Dot Matrix Background */
.bg-dot-pattern {
    background-image: radial-gradient(rgba(75, 26, 121, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Tactile Interactions */
.hover-lift:active, .glass-card:active {
    transform: translateY(-2px) scale(0.97) !important;
    box-shadow: 0 5px 10px -5px rgba(75, 26, 121, 0.15) !important;
    transition: transform 160ms var(--ease-out), box-shadow 160ms ease !important;
}

.btn-primary:active, button:active {
    transform: scale(0.97) translateY(2px) !important;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.2) !important;
    transition: transform 160ms var(--ease-out), box-shadow 160ms ease !important;
}

/* Subtle crossfade blur trick on buttons for buttery transitions */
.btn-primary:active span, button:active span, .btn-primary:active i, button:active i {
    filter: blur(1px);
    opacity: 0.8;
}

/* Add tactile feedback to primary navigation links and standalone links */
nav a:active, .footer-links a:active {
    transform: scale(0.97);
    transition: transform 160ms var(--ease-out);
    display: inline-block;
}

/* Innovative Brand Loader Animations */
.atlaz-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.atlaz-loader-overlay.loaded {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    pointer-events: none;
}

.loader-brand-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-brand-mark {
    width: 60px;
    height: 60px;
    object-fit: contain;
    z-index: 10;
    animation: float-pulse 3s ease-in-out infinite;
}

.loader-ring-1, .loader-ring-2 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.loader-ring-1 {
    border-top-color: #4B1A79; /* Primary */
    border-left-color: #4B1A79;
    animation: spin-innovative 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    opacity: 0.8;
}

.loader-ring-2 {
    inset: 15px;
    border-bottom-color: #008891; /* Secondary */
    border-right-color: #FF7B00; /* Accent */
    animation: spin-innovative 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
    opacity: 0.8;
}

.loader-glow {
    position: absolute;
    inset: 20px;
    background: radial-gradient(circle, rgba(0,136,145,0.2) 0%, rgba(75,26,121,0.2) 50%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    filter: blur(10px);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes spin-innovative {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); border-width: 4px; }
    100% { transform: rotate(360deg) scale(1); border-width: 2px; }
}

@keyframes float-pulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-5px) scale(1.05); opacity: 0.8; }
}

@keyframes pulse-glow {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 1; }
}


/* Infinite Marquee Styles */
.marquee-container {
    /* native scroll */
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
    /* Soft fade on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2rem;
    cursor: grab;
}
.marquee-track:active {
    cursor: grabbing;
}
.marquee-track::-webkit-scrollbar {
    display: none;
}

.marquee-track.left {
    /* animation removed for JS native scroll */
}

.marquee-track.right {
    animation: scrollRight 45s linear infinite;
}

/* hover handled by JS */


.marquee-card {
    width: 420px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    transition: all 0.3s ease;
}


.marquee-card:hover {
    transform: scale(1.02);
    z-index: 10;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
