* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563EB;
    --dark-navy: #0F172A;
    --dark-bg: linear-gradient(135deg, #0A0E27 0%, #1A1F40 50%, #2E1B3E 100%);
    --dark-card: #1E293B;
    --dark-text: #F1F5F9;
    --dark-text-secondary: #94A3B8;
    --light-bg: #FFFFFF;
    --light-card: #FFFFFF;
    --light-text: #1F2937;
    --light-text-secondary: #6B7280;
    --light-border: #E5E7EB;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--dark-bg);
    background-attachment: fixed;
    color: var(--dark-text);
    overflow-x: hidden;
    position: relative;
}

/* Beautiful background with subtle patterns */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(30, 64, 175, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(45, 55, 72, 0.08) 0%, transparent 30%);
    z-index: -1;
    pointer-events: none;
}

/* Animated floating particles */
.floating-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    animation: float 15s infinite linear, pulse 4s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        filter: brightness(1);
    }
    25% {
        transform: translate(50px, 40px) rotate(90deg);
        filter: brightness(1.2);
    }
    50% {
        transform: translate(100px, 0px) rotate(180deg);
        filter: brightness(0.9);
    }
    75% {
        transform: translate(50px, -40px) rotate(270deg);
        filter: brightness(1.1);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        filter: brightness(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* Enhanced interactive balls */
.interactive-ball {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: moveBall 25s infinite linear, floatGentle 8s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.interactive-ball:nth-child(odd) {
    animation: moveBall 30s infinite linear, floatGentle 6s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.interactive-ball:nth-child(3n) {
    animation: moveBall 35s infinite linear, floatGentle 7s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

@keyframes moveBall {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(calc(100vw - 50px), calc(100vh - 50px));
    }
    50% {
        transform: translate(calc(100vw - 100px), 0);
    }
    75% {
        transform: translate(0, calc(100vh - 100px));
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Animated border for .com extension */
.animated-border {
    position: relative;
    background-size: 400% 400% !important;
    animation: gradientBorder 3s ease infinite;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(45deg, #3b82f6, #60a5fa, #93c5fd, #3b82f6);
    background-size: 400% 400%;
    animation: gradientBorder 3s ease infinite;
    -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: destination-out;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

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

/* Mouse follower effect */
.mouse-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 150, 190, 0.3) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mouse-follower.active {
    opacity: 1;
}

/* iOS-style 3D Card Effects */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
}

/* Card hover effects for both themes */
body.dark .card-3d:hover {
    background-color: #1E293B;
}

body:not(.dark) .card-3d:hover {
    background-color: #F9FAFB;
}


/* Glassmorphism Effect */
.glass {
    backdrop-filter: blur(20px);
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
}

/* Ensure glass elements keep dark appearance on hover */
.glass:hover {
    background: rgba(30, 41, 59, 0.5); /* Slightly more opaque on hover */
}

/* Specific fix for domain search results to maintain dark theme */
.domain-search .glass:hover,
.search-results .glass:hover {
    background: rgba(30, 41, 59, 0.4) !important;
}

/* Prevent sections from turning white on hover */
section.py-20:hover {
    background: inherit;
}

/* Ensure hover effects maintain dark theme properly */
section.py-20,
section.py-12,
section.bg-gray-900,
section.bg-gray-800 {
    transition: background-color 0.3s ease;
}

/* Ensure dark mode colors are properly enforced */
html.dark .hover\:bg-gray-800,
body.dark .hover\:bg-gray-800 {
    background-color: #1F2937 !important;
}

html.dark .hover\:bg-gray-600,
body.dark .hover\:bg-gray-600 {
    background-color: #4B5563 !important;
}

/* Specific fix for pricing cards hover effect */
body.dark .card-3d.hover\:bg-gray-800:hover {
    background-color: #1F2937 !important;
}

/* Animated Gradient Background - More Subtle */
.gradient-bg {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 50%, #1E293B 100%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}

/* Enhanced dark mode styling for better contrast and aesthetics */
.text-blue-400 {
    color: #60A5FA;
}

.text-green-400 {
    color: #4ADE80;
}

.text-green-500 {
    color: #22C55E;
}

.text-red-500 {
    color: #EF4444;
}

/* Enhanced buttons for dark mode */
button.bg-blue-600,
a.bg-blue-600 {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(30, 64, 175, 0.3);
}

button.bg-blue-600:hover,
a.bg-blue-600:hover {
    background: #1D4ED8 !important;
    box-shadow: 0 6px 10px rgba(30, 64, 175, 0.4);
    transform: translateY(-2px);
}

/* Enhanced input fields for dark mode */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    transition: all 0.3s ease;
    border: 1px solid #374151;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

/* Domain Search Glow Animation */
.domain-search {
    position: relative;
}

.domain-search:focus-within::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(45deg, #2563EB, #60A5FA, #2563EB);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* Floating Animation - More Subtle */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

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

/* Ping Animation for Server Locations */
.ping-dot {
    position: relative;
}

.ping-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #10B981;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

/* Mobile Menu Animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Sticky Header */
.sticky-header {
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Logo Carousel Animation - Smoother */
.logo-carousel {
    display: flex;
    animation: scroll-left 40s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Beautiful Background Animations */
@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

@keyframes pulse-medium {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.08); opacity: 0.13; }
}

@keyframes pulse-fast {
    0%, 100% { transform: scale(1); opacity: 0.12; }
    50% { transform: scale(1.12); opacity: 0.18; }
}

@keyframes pulse-slower {
    0%, 100% { transform: scale(1); opacity: 0.06; }
    50% { transform: scale(1.05); opacity: 0.1; }
}

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

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

.animate-pulse-fast {
    animation: pulse-fast 4s ease-in-out infinite;
}

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

/* Server Locations Datacenter Flags */
.flag-container {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: flagFloat 3s ease-in-out infinite alternate;
}

.flag-icon {
    transition: all 0.4s ease;
    display: block;
    margin: 0 auto;
}

.flag-container:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
    animation: none;
}

.flag-container:hover .flag-icon {
    transform: scale(1.1);
}

@keyframes flagFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-5px) rotate(1deg); }
}

/* Text colors for dark mode */
.text-gray-300 {
    color: #D1D5DB;
}

.text-gray-400 {
    color: #9CA3AF;
}

.text-white {
    color: #FFFFFF;
}

.text-gray-900 {
    color: #F9FAFB;
}

/* Link colors for dark mode */
a.text-gray-300:hover,
a.text-gray-400:hover {
    color: #F9FAFB;
}

/* Background colors for sections */
.bg-gray-900 {
    background-color: #111827;
}

.bg-gray-800 {
    background-color: #1F2937;
}

/* Border colors for dark mode */
.border-gray-800 {
    border-color: #1F2937;
}

.border-gray-700 {
    border-color: #374151;
}

/* Enhanced card styling for dark mode */
.card-3d {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: transparent; /* Use glass effect background instead */
}

.card-3d:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}


/* Custom padding for domain search section */
.py-20 {
    padding-top: 8rem;
    padding-bottom: 5rem;
}

/* Customer Reviews Carousel */
#reviewsCarousel {
    display: flex;
}

.carousel-item {
    padding: 0 1rem;
    min-width: 33.333%; /* For desktop - 3 items per view */
}

@media (max-width: 768px) {
    .carousel-item {
        padding: 0 0.5rem;
        min-width: 100%; /* Full width on mobile */
    }
}


