/* Enhance typography */
body {
    font-family: 'Roboto', Arial, sans-serif;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Subtle background pattern */
body {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

/* Gradient overlay for the hero section */
.bg-blue-800 {
    background-image: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

/* Fancy hover effect for buttons */
.hover\:bg-blue-700:hover {
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Subtle animation for section entries */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

section {
    animation: fadeInUp 0.5s ease-out;
}

/* Stylish quote marks for testimonials */
#testimonials .bg-white p:before {
    content: '\201C';
    font-size: 4em;
    color: #3b82f6;
    position: absolute;
    left: 10px;
    top: -10px;
}

#testimonials .bg-white {
    position: relative;
    overflow: hidden;
}

/* Elegant underline effect for navigation */
nav a {
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3b82f6;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

nav a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Improved focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Responsive font sizes */
@media (max-width: 768px) {
    h2 {
        font-size: 1.75rem;
    }
    .text-4xl {
        font-size: 2.5rem;
    }
}

/* Pricing section styles */
#pricing .container {
    max-width: 1200px;
}

#pricing .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.pricing-card {
    flex: 1 1 300px;
    max-width: 350px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.popular {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.popular-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

.pricing-card ul {
    flex-grow: 1;
    padding-left: 0;
}

.pricing-card a {
    align-self: center;
}

.pricing-feature {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.pricing-feature span {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .pricing-card, .pricing-card.popular {
        flex-basis: 100%;
        max-width: none;
        transform: none;
        margin-bottom: 2rem;
    }
}