/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.15), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(139, 92, 246, 0.1), transparent);
    pointer-events: none;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    top: 10%;
    left: -10%;
    animation: float-1 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    top: 60%;
    right: -5%;
    animation: float-2 25s ease-in-out infinite;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    bottom: 20%;
    left: 30%;
    animation: float-3 15s ease-in-out infinite;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    top: 30%;
    right: 20%;
    animation: float-4 18s ease-in-out infinite;
}

.shape-5 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    bottom: 40%;
    right: 40%;
    animation: float-5 22s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 30px) rotate(90deg); }
    50% { transform: translate(100px, 60px) rotate(180deg); }
    75% { transform: translate(50px, 90px) rotate(270deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-40px, 50px) rotate(-90deg); }
    50% { transform: translate(-80px, 100px) rotate(-180deg); }
    75% { transform: translate(-40px, 150px) rotate(-270deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -40px) scale(1.2); }
}

@keyframes float-4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, 60px) rotate(120deg); }
    66% { transform: translate(60px, 30px) rotate(240deg); }
}

@keyframes float-5 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, -80px); }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}
/* Plan Cards */
.plan-card {
    position: relative;
    overflow: visible;
}
.plan-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, transparent 60%, rgba(59, 130, 246, 0.05) 100%);
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;
}
.plan-card.featured::after {
    background: linear-gradient(180deg, transparent 40%, rgba(59, 130, 246, 0.1) 100%);
}

/* Popular Badge Fix */
.plan-card.featured {
    padding-top: 3.5rem !important;
    overflow: visible;
}

.plan-card.featured .absolute.-top-4 {
    top: -12px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Container for plans to allow overflow */
#planes .grid {
    padding-top: 1rem;
}
/* Testimonial Cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: rgba(59, 130, 246, 0.1);
    line-height: 1;
}

/* FAQ Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: #3b82f6;
}

.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

/* Form Styles */
input:focus, 
select:focus, 
textarea:focus {
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Counter Animation */
.counter {
    opacity: 0;
    animation: countUp 0.5s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .shape {
        opacity: 0.05;
        filter: blur(40px);
    }
    
    .shape-1, .shape-2, .shape-3, .shape-4, .shape-5 {
        width: 150px !important;
        height: 150px !important;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Hover Effects */
button, 
a {
    position: relative;
}

/* Loading Animation for buttons */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse Animation */
.pulse-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}