/* ==========================================
   PROFESSIONAL ANIMATIONS & MODERN STYLES
   ========================================== */

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

/* ==========================================
   PREMIUM GRADIENT TEXT EFFECTS
   ========================================== */
.gradient-text-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
    background-size: 200% 200%;
}

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

/* ==========================================
   ADVANCED BLOB ANIMATIONS
   ========================================== */
@keyframes blob {
    0%, 100% { 
        transform: translate(0px, 0px) scale(1) rotate(0deg); 
    }
    25% { 
        transform: translate(30px, -50px) scale(1.1) rotate(90deg); 
    }
    50% { 
        transform: translate(-20px, 20px) scale(0.9) rotate(180deg); 
    }
    75% { 
        transform: translate(50px, 30px) scale(1.05) rotate(270deg); 
    }
}

.animate-blob {
    animation: blob 12s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animation-delay-6000 {
    animation-delay: 6s;
}

/* ==========================================
   FADE IN UP ANIMATIONS
   ========================================== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation Delays */
.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

.animation-delay-600 {
    animation-delay: 0.6s;
    opacity: 0;
}

.animation-delay-700 {
    animation-delay: 0.7s;
    opacity: 0;
}

.animation-delay-800 {
    animation-delay: 0.8s;
    opacity: 0;
}

.animation-delay-900 {
    animation-delay: 0.9s;
    opacity: 0;
}

.animation-delay-1000 {
    animation-delay: 1s;
    opacity: 0;
}

/* ==========================================
   FLOATING ANIMATIONS
   ========================================== */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

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

@keyframes float-fast {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
}

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

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

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

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

.animate-scroll-down {
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

/* ==========================================
   COUNTER ANIMATION (for stats)
   ========================================== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ==========================================
   TEXT CLIPPING
   ========================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* ==========================================
   CUSTOM HOVER EFFECTS
   ========================================== */
/* ==========================================
   CUSTOM HOVER EFFECTS
   ========================================== */
.card-hover {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Image zoom effect */
.image-zoom-hover {
    overflow: hidden;
}

.image-zoom-hover img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-hover:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* ==========================================
   HERO SECTION SPECIFIC
   ========================================== */
.hero-section {
    min-height: 100vh;
    position: relative;
}

.hero-gradient {
    animation: hero-gradient-shift 15s ease infinite;
}

@keyframes hero-gradient-shift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(20deg);
    }
}

/* ==========================================
   BUTTON STYLES
   ========================================== */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

/* ==========================================
   SHADOW STYLES
   ========================================== */
.shadow-3xl {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

.shadow-glow-primary {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

.shadow-glow-purple {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* ==========================================
   LOADING & SKELETON
   ========================================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ==========================================
   BADGE ANIMATIONS
   ========================================== */
.badge-shine {
    position: relative;
    overflow: hidden;
}

.badge-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ==========================================
   CUSTOM SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9, #6366f1);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0284c7, #4f46e5);
}

/* ==========================================
   PULSE ANIMATION
   ========================================== */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

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

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .no-print, nav, footer, .hero-section .animate-bounce-slow {
        display: none !important;
    }
}

/* ==========================================
   FOCUS STYLES (Accessibility)
   ========================================== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #0ea5e9;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================
   BACKDROP BLUR SUPPORT
   ========================================== */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-xl {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .backdrop-blur-2xl {
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
    }
}

/* ==========================================
   PARALLAX EFFECTS
   ========================================== */
.parallax-layer {
    will-change: transform;
    transform: translateZ(0);
}

/* ==========================================
   BORDER ANIMATIONS
   ========================================== */
@keyframes border-dance {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.border-animate {
    animation: border-dance 10s ease-in-out infinite;
}

/* ==========================================
   GRADIENT BORDERS
   ========================================== */
.gradient-border {
    position: relative;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    animation: gradient-shift 3s ease infinite;
}

/* ==========================================
   TEXT REVEAL ANIMATIONS
   ========================================== */
@keyframes text-reveal {
    from {
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }
    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.text-reveal {
    animation: text-reveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.transition-all-300 {
    transition: all 0.3s ease;
}

.transition-transform-500 {
    transition: transform 0.5s ease;
}

.transition-colors-300 {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Hide on mobile */
@media (max-width: 640px) {
    .sm\:hidden {
        display: none;
    }
}

/* Visually hidden but accessible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
