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

/* Custom styles */
.hero-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Ensure proper spacing for fixed header */
section {
    scroll-margin-top: 80px;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

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

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

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

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

.animate-gradient {
    background: linear-gradient(-45deg, #1e40af, #3b82f6, #f59e0b, #ef4444);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #1e40af, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.hover-lift {
    transition: all 0.3s ease;
}

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

/* Loading animation */
.loading-dots {
    display: inline-block;
}
.loading-dots:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: currentColor; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 currentColor, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 currentColor, .5em 0 0 currentColor; }
}

/* Offer Page Specific Styles */
.shadow-3xl {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Price emphasis */
.price-emphasis {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature list animations */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

/* Package card hover effects */
.package-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.package-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Gradient borders */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3px;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Pulse animation for CTA */
@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-gentle {
    animation: pulse-gentle 2s infinite;
}

/* Testimonial Carousel Styles */
.testimonial-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
}

.testimonial-carousel::-webkit-scrollbar {
    height: 8px;
}

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

.testimonial-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.testimonial-carousel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.testimonial-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: scale(1.05);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: white;
    color: inherit;
    border-color: #e2e8f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-item {
        flex: 0 0 280px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
}
/* Improved Testimonial Carousel Styles */
.testimonial-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1rem 0.5rem 2rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
}

.testimonial-carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.testimonial-item {
    flex: 0 0 calc(320px - 1rem);
    scroll-snap-align: start;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
}

.carousel-btn:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: scale(1.05);
}

.carousel-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: white;
    color: inherit;
    border-color: #e2e8f0;
}

/* Ensure iframes are responsive */
.testimonial-item iframe {
    border: none;
    border-radius: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-item {
        flex: 0 0 calc(280px - 1rem);
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .testimonial-carousel {
        padding: 0.5rem 0.25rem 1.5rem 0.25rem;
    }
}

@media (max-width: 480px) {
    .testimonial-item {
        flex: 0 0 calc(260px - 1rem);
    }
}