/* Modern CSS with animations and effects */
:root {
    --primary-color: #1E3A8A;
    --secondary-color: #3B82F6;
    --accent-color: #10B981;
    --text-dark: #1a202c;
    --text-light: #718096;
    --border-radius: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #f7fafc, #ffffff);
    margin: 0;
}

/* Modern announcement bar */
.announcement-bar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #60A5FA 100%);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Modern header with depth */
.header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: white;
    padding: 3rem 1rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Modern button styles */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #60A5FA 100%);
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.35);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.45);
}

.section {
    padding: 5rem 1rem;
    position: relative;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.problem-solution {
    background: linear-gradient(to bottom, #ffffff, #f7fafc);
}

.problem-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ef4444;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.problem-box:hover {
    transform: translateX(5px);
}

.solution-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.solution-box:hover {
    transform: translateX(5px);
}

.features-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.feature-icon {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: var(--primary-color);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.faq-section {
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    padding: 4rem 1rem;
}

/* Modern FAQ Collapsible System */
.faq-container {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-item {
    background: #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 2px solid #cbd5e1;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: var(--secondary-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(96, 165, 250, 0.08) 100%);
    color: var(--primary-color);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.faq-question:hover {
    background: rgba(59, 130, 246, 0.04);
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    color: var(--secondary-color);
    background: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--secondary-color);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    background: rgba(255, 255, 255, 0.7);
}

.faq-answer p {
    margin: 0;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.25rem 1.75rem 1.75rem;
}

.contact-section {
    background-color: #1E3A8A;
    color: white;
}

.contact-form {
    background-color: white;
    color: #333;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-input:hover {
    border-color: #cbd5e1;
}

.footer {
    background-color: #111827;
    color: white;
    padding: 2rem 1rem;
}

.footer-heading {
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.footer-link {
    margin-bottom: 0.5rem;
}

.floating-button {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 1rem);
    right: 1rem;
    background-color: #10B981;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
}

.floating-button:hover,
.floating-button:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.floating-button:active {
    transform: scale(0.95);
}

/* Add padding to account for the floating button */
body {
    padding-bottom: env(safe-area-inset-bottom, 4rem);
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Section animations */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card animations */
.feature-card, .testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Modal styles */
#contactModal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#contactModal.visible {
    opacity: 1;
}

#contactModal > div {
    transform: scale(0.95);
    transition: transform 0.3s ease;
    margin: 2rem auto;
    padding: 2rem;
}

#contactModal.visible > div {
    transform: scale(1);
}

@media (max-width: 767px) {
    #contactModal > div {
        margin: 1rem;
        padding: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 768px) {
    #contactModal > div {
        width: 500px;
        max-width: 90%;
        max-height: none;
        height: auto;
        overflow: visible;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .flex-row {
        display: flex;
    }
    
    .flex-half {
        width: 50%;
    }
    
    .flex-half:first-child {
        padding-right: 1.5rem;
    }
    
    .flex-half:last-child {
        padding-left: 1.5rem;
    }
    
    .grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .grid-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
