/* Custom Styles for CloudTusker */

/* Font Family */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

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

/* Custom Animations */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes morph {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% { 
        transform: scale(1.1) rotate(180deg);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes particle-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(90deg); }
    50% { transform: translate(-5px, -20px) rotate(180deg); }
    75% { transform: translate(-10px, -5px) rotate(270deg); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
        transform: scale(1.05);
    }
}

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

/* Billing Toggle Animations */
.billing-cycle-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.billing-cycle-btn:hover {
    transform: translateY(-1px);
}

.billing-cycle-btn:active {
    transform: translateY(0);
}

#billing-indicator {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes border-dance {
    0%, 100% { border-color: rgba(59, 130, 246, 0.5); }
    50% { border-color: rgba(6, 182, 212, 0.8); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

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

/* Animation Classes */
.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 6s ease infinite;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInScale {
    animation: fadeInScale 0.6s ease-out forwards;
}

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

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

.animate-particle-float {
    animation: particle-float 8s linear infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-gradient-text {
    background-size: 200% 100%;
    animation: gradient-text 3s ease infinite;
}

.animate-shimmer {
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

.animate-bounce-subtle {
    animation: bounce-subtle 2s infinite;
}

/* Animation Delays */
.animation-delay-100 { animation-delay: 100ms; }
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-300 { animation-delay: 300ms; }
.animation-delay-400 { animation-delay: 400ms; }
.animation-delay-500 { animation-delay: 500ms; }
.animation-delay-600 { animation-delay: 600ms; }
.animation-delay-700 { animation-delay: 700ms; }
.animation-delay-800 { animation-delay: 800ms; }

/* Navbar Styles */
.navbar-transparent {
    background: transparent;
    backdrop-filter: none;
}

.navbar-solid {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Currency Toggle */
.currency-active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
}

/* Particles */
#particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    opacity: 0.7;
    animation: particle-float 8s linear infinite;
}

.particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Particle Background for sections */
.particle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(59, 130, 246, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(6, 182, 212, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(59, 130, 246, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(6, 182, 212, 0.4), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(59, 130, 246, 0.3), transparent);
    background-size: 200px 150px;
    animation: particle-float 20s linear infinite;
}

/* Mobile Menu */
.mobile-menu-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

/* Hover Effects */
.hover-glow:hover {
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 40px rgba(6, 182, 212, 0.2),
        0 0 60px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-gradient-to-r {
        background: #0066cc !important;
    }
    
    .text-gray-400 {
        color: #666666 !important;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-5xl { font-size: 2.5rem; }
    .text-6xl { font-size: 3rem; }
    .text-7xl { font-size: 3.5rem; }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Container Queries Support */
@supports (container-type: inline-size) {
    .container-card {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .container-card .text-xl {
            font-size: 1rem;
        }
    }
}

/* Modern CSS Features */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.modern-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Custom Properties for Theme */
:root {
    --primary-blue: #3b82f6;
    --primary-cyan: #06b6d4;
    --background-dark: #0f172a;
    --background-darker: #020617;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
}

/* Utility Classes */
.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.backdrop-blur-strong {
    backdrop-filter: blur(40px);
}

.gradient-border {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    padding: 1px;
    border-radius: inherit;
}

.gradient-border > * {
    background: var(--background-dark);
    border-radius: inherit;
}