/* Custom styles for NAQSN website */

/* Global styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Artistic heading font */
.artistic-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Text rendering optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ensure crisp text rendering for hero title */
.hero-title, .hero-title * {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    font-feature-settings: "kern" 1;
    -webkit-transform: none !important;
    transform: none !important;
    will-change: auto;
    backface-visibility: hidden;
    perspective: 1000px;
    font-weight: 900 !important;
    color: white !important;
    text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

/* Advanced animations and effects */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Equal Height Contact Layout */
.contact-equal-height {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-equal-height {
        grid-template-columns: 1.2fr 1fr !important;
        gap: 3rem;
    }
    
    .contact-equal-height > div {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .contact-info-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .contact-form-wrapper {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        max-width: 600px;
        margin-left: auto;
    }
}

@media (min-width: 1280px) {
    .contact-equal-height {
        grid-template-columns: 1.3fr 1fr !important;
        gap: 4rem;
        max-width: 1600px;
    }
    
    .contact-form-wrapper {
        max-width: 650px;
    }
}

@media (min-width: 1536px) {
    .contact-equal-height {
        grid-template-columns: 1.4fr 1fr !important;
        gap: 5rem;
        max-width: 1800px;
    }
    
    .contact-form-wrapper {
        max-width: 700px;
    }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
        transform: scale(1.02);
    }
}

@keyframes slide-in-bottom {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoom-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotate-in {
    0% {
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particle animation background */
@keyframes particle-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
        opacity: 1;
    }
    66% {
        transform: translateY(-10px) rotate(240deg);
        opacity: 0.8;
    }
}

/* Enhanced Navigation with premium effects */
.nav-dropdown {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-dropdown.visible {
    transform: translateY(0);
    animation: slide-in-bottom 0.4s ease-out;
}

/* Improved Legal & Compliance dropdown menu */
.group:hover .absolute {
    z-index: 1000;
}

/* Legal dropdown container */
.group .absolute {
    min-width: 240px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    background: white;
    backdrop-filter: blur(10px);
}

/* Legal dropdown menu items */
.group .absolute .py-1 {
    padding: 8px 0;
}

.group .absolute a {
    display: block !important;
    padding: 12px 16px !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease !important;
    height: auto !important;
    min-height: auto !important;
}

.group .absolute a:last-child {
    border-bottom: none;
}

.group .absolute a:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #1e40af !important;
    padding-left: 20px !important;
}

/* Legal dropdown arrow animation */
.group:hover svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.group svg {
    transition: transform 0.3s ease;
}

/* Hero Section Background Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(90deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(45deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

/* Apply animations to hero background elements */
section[class*="from-slate-900"] svg:nth-child(1) { animation: float-slow 15s ease-in-out infinite; }
section[class*="from-slate-900"] svg:nth-child(2) { animation: float-medium 12s ease-in-out infinite; }
section[class*="from-slate-900"] svg:nth-child(3) { animation: float-fast 10s ease-in-out infinite; }
section[class*="from-slate-900"] svg:nth-child(4) { animation: pulse-glow 8s ease-in-out infinite; }

section[class*="from-emerald-900"] svg:nth-child(1) { animation: float-medium 14s ease-in-out infinite; }
section[class*="from-emerald-900"] svg:nth-child(2) { animation: float-slow 16s ease-in-out infinite; }
section[class*="from-emerald-900"] svg:nth-child(3) { animation: float-fast 9s ease-in-out infinite; }
section[class*="from-emerald-900"] svg:nth-child(4) { animation: pulse-glow 11s ease-in-out infinite; }

section[class*="from-indigo-900"] svg:nth-child(1) { animation: float-fast 13s ease-in-out infinite; }
section[class*="from-indigo-900"] svg:nth-child(2) { animation: float-medium 17s ease-in-out infinite; }
section[class*="from-indigo-900"] svg:nth-child(3) { animation: float-slow 11s ease-in-out infinite; }
section[class*="from-indigo-900"] svg:nth-child(4) { animation: pulse-glow 9s ease-in-out infinite; }

section[class*="from-violet-900"] svg:nth-child(1) { animation: float-medium 16s ease-in-out infinite; }
section[class*="from-violet-900"] svg:nth-child(2) { animation: float-fast 8s ease-in-out infinite; }
section[class*="from-violet-900"] svg:nth-child(3) { animation: float-slow 18s ease-in-out infinite; }
section[class*="from-violet-900"] svg:nth-child(4) { animation: pulse-glow 12s ease-in-out infinite; }

/* Legal & Compliance page animations */
section[class*="from-blue-900"] svg:nth-child(1) { animation: float-slow 14s ease-in-out infinite; }
section[class*="from-blue-900"] svg:nth-child(2) { animation: float-medium 11s ease-in-out infinite; }
section[class*="from-blue-900"] svg:nth-child(3) { animation: float-fast 15s ease-in-out infinite; }
section[class*="from-blue-900"] svg:nth-child(4) { animation: pulse-glow 10s ease-in-out infinite; }

section[class*="from-slate-800"] svg:nth-child(1) { animation: float-medium 13s ease-in-out infinite; }
section[class*="from-slate-800"] svg:nth-child(2) { animation: float-slow 17s ease-in-out infinite; }
section[class*="from-slate-800"] svg:nth-child(3) { animation: float-fast 9s ease-in-out infinite; }
section[class*="from-slate-800"] svg:nth-child(4) { animation: pulse-glow 14s ease-in-out infinite; }

section[class*="from-teal-900"] svg:nth-child(1) { animation: float-fast 12s ease-in-out infinite; }
section[class*="from-teal-900"] svg:nth-child(2) { animation: float-medium 16s ease-in-out infinite; }
section[class*="from-teal-900"] svg:nth-child(3) { animation: float-slow 10s ease-in-out infinite; }
section[class*="from-teal-900"] svg:nth-child(4) { animation: pulse-glow 13s ease-in-out infinite; }

section[class*="from-red-900"] svg:nth-child(1) { animation: float-medium 15s ease-in-out infinite; }
section[class*="from-red-900"] svg:nth-child(2) { animation: float-fast 11s ease-in-out infinite; }
section[class*="from-red-900"] svg:nth-child(3) { animation: float-slow 19s ease-in-out infinite; }
section[class*="from-red-900"] svg:nth-child(4) { animation: pulse-glow 8s ease-in-out infinite; }

/* Premium navigation bar */
nav {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Fix navigation alignment - Ensure NAQSN title and nav links align perfectly */
nav .flex.justify-between {
    align-items: center !important;
}

nav .flex.items-center {
    align-items: center !important;
}

/* NAQSN title alignment */
nav h1.text-2xl {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 32px !important;
}

/* Navigation links alignment - match the title height */
nav a, nav button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    height: 32px !important;
    margin: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Navigation container alignment */
nav .ml-10 {
    align-items: center !important;
    height: 32px !important;
}

/* Force consistent height across all navigation elements */
nav .flex-shrink-0,
nav .hidden.md\\:block {
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
}

/* Animated logo */
nav .text-2xl {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
    position: relative;
    z-index: 40;
}

#mobile-menu.active {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure mobile menu content is scrollable and language switcher is visible */
#mobile-menu .bg-white {
    min-height: auto;
    padding-bottom: 2rem;
}

/* Add extra bottom padding to mobile menu content */
#mobile-menu .space-y-2 {
    padding-bottom: 5rem !important;
}

/* Premium Button Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    background-size: 200% 200%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
    background-position: 100% 100%;
    animation: pulse-glow 2s infinite;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

/* Premium Card Effects */
.card-hover {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.card-hover:hover::before {
    opacity: 1;
}

.card-hover > * {
    position: relative;
    z-index: 2;
}

/* Floating animation for cards */
.card-float {
    animation: float 6s ease-in-out infinite;
}

.card-float:nth-child(2) {
    animation-delay: -2s;
}

.card-float:nth-child(3) {
    animation-delay: -4s;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Hero Section with Particle Background */
.hero-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="particles" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="75" cy="75" r="1.5" fill="white" opacity="0.15"><animate attributeName="opacity" values="0.15;0.4;0.15" dur="4s" repeatCount="indefinite"/></circle><circle cx="50" cy="10" r="1" fill="white" opacity="0.08"><animate attributeName="opacity" values="0.08;0.25;0.08" dur="5s" repeatCount="indefinite"/></circle><circle cx="10" cy="60" r="1.2" fill="white" opacity="0.12"><animate attributeName="opacity" values="0.12;0.35;0.12" dur="3.5s" repeatCount="indefinite"/></circle></pattern></defs><rect width="100" height="100" fill="url(%23particles)"/></svg>');
    pointer-events: none;
    animation: particle-float 20s linear infinite;
}

/* Floating particles */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particle-float 15s linear infinite;
}

.particle:nth-child(1) {
    width: 10px;
    height: 10px;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 20%;
    animation-delay: -5s;
}

.particle:nth-child(3) {
    width: 8px;
    height: 8px;
    left: 70%;
    animation-delay: -10s;
}

.particle:nth-child(4) {
    width: 12px;
    height: 12px;
    left: 90%;
    animation-delay: -2s;
}

/* Animated hero text */
.hero-title {
    background: linear-gradient(135deg, #ffffff, #f0f9ff, #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.hero-subtitle {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slide-in-bottom 1s ease-out 0.5s both;
}

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

.form-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #d97706;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}

/* Scroll indicators */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 9999;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive typography */
@media (max-width: 768px) {
    .text-responsive {
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .text-responsive {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 4rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Animation delays */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #ffffff;
    }
    
    .text-gray-600 {
        color: #000000;
    }
    
    .border-gray-300 {
        border-color: #000000;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .wow {
        animation: none !important;
    }
}

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

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3B82F6;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
    }
}

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

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

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #3B82F6, #8B5CF6) border-box;
}

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

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: currentColor; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes morphing {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* Premium Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-bounce-in {
    animation: bounceIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-morphing {
    animation: morphing 8s ease-in-out infinite;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Interactive hover effects */
.hover-scale {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

/* Override for glass elements to prevent conflicts */
.glass.hover-scale {
    transform: scale(1) !important;
}

.glass.hover-scale:hover {
    transform: translateY(-2px) scale(1.02) !important;
}

.hover-scale:not(.glass):hover {
    transform: scale(1.03) translateY(-2px);
}

.hover-scale:active {
    transform: scale(0.98) translateY(0px);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Glass morphism effects */
.glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(25px) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

/* Ensure glass buttons maintain visibility */
.glass.border-2 {
    border-width: 2px !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.glass.border-2:hover {
    border-width: 2px !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Specific rules for hero section buttons */
.hero-bg .glass {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: white !important;
}

.hero-bg .glass:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: white !important;
}

/* Ensure text remains visible */
.glass * {
    color: inherit !important;
}

.glass:hover * {
    color: inherit !important;
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Shimmer loading effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}
