/* Custom Global Styles for Web Hosting Freedom */

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #28854b 0%, #39bd69 50%, #207442 100% 100%);
}

@keyframes hero-mesh {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.bg-hero-mesh {
    background: linear-gradient(
        135deg,
        rgba(116, 209, 150, 0.1) 0%,
        rgba(97, 202, 135, 0.05) 25%,
        transparent 50%,
        rgba(116, 209, 150, 0.05) 75%,
        rgba(97, 202, 135, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: hero-mesh 20s ease-in-out infinite;
}

/* Floating Light Orbs for Hero Background */
@keyframes float-orb-1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(30px, -40px) scale(1.2); opacity: 0.8; }
}

@keyframes float-orb-2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(-40px, 30px) scale(1.3); opacity: 0.7; }
}

@keyframes float-orb-3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(20px, 35px) scale(1.1); opacity: 0.6; }
}

@keyframes float-orb-4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(-35px, -25px) scale(1.2); opacity: 0.8; }
}

.animate-float-orb-1 { animation: float-orb-1 8s ease-in-out infinite; }
.animate-float-orb-2 { animation: float-orb-2 10s ease-in-out infinite; }
.animate-float-orb-3 { animation: float-orb-3 7s ease-in-out infinite; }
.animate-float-orb-4 { animation: float-orb-4 9s ease-in-out infinite; }

/* Glass Morphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-card-dark {
    background: rgba(9, 40, 71, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #1864c5, #5d93d6, #2f74cb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

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

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

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

/* Pulse Animation */
.pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s ease;
}

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

/* Card Shine Effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.card-shine:hover::before {
    left: 100%;
}

/* Border Gradient Animation */
.border-gradient {
    position: relative;
    background: white;
    border-radius: 1rem;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, #1864c5, #5d93d6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1864c5, #2f74cb);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #092847;
}

/* CTA Button Styles */
.btn-primary-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(24, 100, 197, 0.5);
    transition: all 0.3s ease;
}

.btn-primary-glow:hover {
    box-shadow: 0 0 30px rgba(24, 100, 197, 0.8);
    transform: translateY(-2px);
}

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

.btn-primary-glow:hover::after {
    width: 300px;
    height: 300px;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

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

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Section Dividers */
.section-divider {
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #1864c5, transparent);
    border-radius: 2px;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

/* Icon Bounce */
.icon-bounce:hover {
    animation: bounce 0.6s;
}

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

/* Typing Effect */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particle-float 15s infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

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

/* Image Zoom on Hover */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-up {
    animation: countUp 0.5s ease;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Custom Checkbox */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #1864c5;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.custom-checkbox:checked {
    background: #1864c5;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

/* Neon Text Effect */
.neon-text {
    text-shadow: 0 0 10px rgba(24, 100, 197, 0.8),
                 0 0 20px rgba(24, 100, 197, 0.6),
                 0 0 30px rgba(24, 100, 197, 0.4);
}

/* Service Card Hover */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
}

/* Pricing Card Active */
.pricing-card-active {
    border: 3px solid #1864c5;
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(24, 100, 197, 0.3);
}

/* Testimonial Slider */
.testimonial-slide {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stats Counter */
.stats-number {
    font-variant-numeric: tabular-nums;
}

/* Feature Icon Glow */
.feature-icon-glow {
    filter: drop-shadow(0 0 10px rgba(24, 100, 197, 0.5));
}

/* Mobile Menu Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-enter {
    animation: slideDown 0.3s ease;
}

/* Domain Search Animation */
.domain-search-pulse {
    animation: domain-pulse 2s infinite;
}

@keyframes domain-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(24, 100, 197, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(24, 100, 197, 0);
    }
}

/* Additional Enhancements */

/* Smooth fade-in for page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Gradient button hover effect */
.btn-gradient {
    background: linear-gradient(135deg, #1864c5, #2f74cb, #5d93d6);
    background-size: 200% 200%;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(24, 100, 197, 0.4);
}

/* Interactive card shadow */
.card-interactive {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-interactive:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Underline animation for links */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1864c5, #5d93d6);
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Animated background patterns */
@keyframes movePattern {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.animated-pattern {
    background-size: 400% 400%;
    animation: movePattern 15s ease infinite;
}

/* Pricing card highlight */
.pricing-highlight {
    position: relative;
    overflow: hidden;
}

.pricing-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

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

/* Service icon bounce on hover */
.service-icon {
    transition: transform 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Testimonial card gradient border */
.testimonial-gradient-border {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 2px;
}

.testimonial-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, #1864c5, #5d93d6, #2f74cb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Floating badge animation */
@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

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

/* Glowing text effect */
.text-glow {
    text-shadow: 0 0 20px rgba(24, 100, 197, 0.5),
                 0 0 40px rgba(24, 100, 197, 0.3),
                 0 0 60px rgba(24, 100, 197, 0.2);
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Scale on hover */
.scale-hover {
    transition: transform 0.3s ease;
}

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

/* Shadow pulse animation */
@keyframes shadowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(24, 100, 197, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(24, 100, 197, 0.8);
    }
}

.shadow-pulse {
    animation: shadowPulse 2s ease-in-out infinite;
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Zoom in animation */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-in {
    animation: zoomIn 0.5s ease-out;
}

/* Custom selection color */
::selection {
    background: #1864c5;
    color: white;
}

::-moz-selection {
    background: #1864c5;
    color: white;
}

/* Focus visible styles for accessibility */
*:focus-visible {
    outline: 2px solid #1864c5;
    outline-offset: 2px;
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Responsive typography enhancements */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }

    .floating-cta a {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .floating-cta,
    footer {
        display: none;
    }
}
