/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: #064e3b;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: #4b5563;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #064e3b, #047857);
    color: white;
    box-shadow: 0 4px 6px rgba(6, 78, 59, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(6, 78, 59, 0.3);
}

.btn-secondary {
    background: #f59e0b;
    color: #064e3b;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
}

.btn-secondary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 158, 11, 0.3);
}

.btn-outline {
    background: transparent;
    color: #064e3b;
    border: 2px solid #064e3b;
}

.btn-outline:hover {
    background: #064e3b;
    color: white;
}

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: #064e3b;
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #064e3b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #f59e0b;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #064e3b;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #064e3b, #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #6b7280;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat h3 {
    font-size: 2rem;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.badge {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #f59e0b;
}

.badge strong {
    display: block;
    font-size: 1.2rem;
    color: #064e3b;
    margin-bottom: 0.5rem;
}

.badge span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    border-color: #f59e0b;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #064e3b;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: #f9fafb;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #e5e7eb;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: #f59e0b;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #064e3b;
}

.price {
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    color: #6b7280;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #064e3b;
}

.period {
    font-size: 1rem;
    color: #6b7280;
}

.plan-description {
    color: #6b7280;
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Tax Calculator Section */
.tax-calculator {
    padding: 80px 0;
    background: linear-gradient(135deg, #064e3b, #047857);
    color: white;
}

.calculator-content {
    text-align: center;
}

.calculator-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.calculator-content p {
    font-size: 1.2rem;
    color: #d1fae5;
    margin-bottom: 3rem;
}

.calculator-placeholder {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calculator-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.calculator-placeholder h3 {
    color: white;
    margin-bottom: 1rem;
}

.calculator-placeholder p {
    margin-bottom: 2rem;
}

/* Resources Section */
.resources {
    padding: 80px 0;
    background: #ffffff;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.resource-category {
    display: inline-block;
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.resource-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: #f9fafb;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.member-image {
    margin-bottom: 1.5rem;
}

.placeholder-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #064e3b, #047857);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto;
}

.member-title {
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-description {
    margin-bottom: 1.5rem;
}

.member-credentials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-credentials span {
    background: #064e3b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #f59e0b;
    font-family: serif;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author strong {
    color: #064e3b;
    font-weight: 600;
}

.testimonial-author span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f9fafb;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-item strong {
    color: #064e3b;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: #064e3b;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #064e3b;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #d1fae5;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1fae5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f59e0b;
}

.footer-certifications {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cert {
    background: #f59e0b;
    color: #064e3b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #047857;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #d1fae5;
    margin: 0;
}

.demo-notice {
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Enhanced Mobile Navigation */
    .hamburger {
        display: flex;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .hamburger:hover {
        background-color: rgba(6, 78, 59, 0.1);
    }

    .hamburger span {
        width: 22px;
        height: 2px;
        background: #064e3b;
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 1px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
        min-height: calc(100vh - 80px);
        justify-content: flex-start;
        gap: 1rem;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 8px;
        margin: 0 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu a:hover {
        background-color: rgba(245, 158, 11, 0.1);
        transform: translateX(5px);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Enhanced Hero Section Mobile */
    .hero {
        padding: 100px 0 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .stat {
        padding: 1.5rem 1rem;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 14px 24px;
        min-height: 48px;
        font-size: 1.1rem;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .badge {
        padding: 1.25rem;
        max-width: 200px;
        margin: 0 auto;
    }

    /* Enhanced Service Cards Mobile */
    .services {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
        margin: 0 5px;
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .service-card ul {
        margin-top: 1rem;
    }

    .service-card li {
        padding: 0.4rem 0;
        font-size: 0.95rem;
    }

    /* Enhanced Pricing Cards Mobile */
    .pricing {
        padding: 60px 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
        margin: 0 5px;
        border-radius: 12px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
        border-width: 3px;
    }

    .popular-badge {
        top: -12px;
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem;
    }

    .pricing-card h3 {
        font-size: 1.4rem;
    }

    .amount {
        font-size: 2.5rem;
    }

    .plan-features {
        margin-bottom: 1.5rem;
    }

    .plan-features li {
        padding: 0.6rem 0;
        font-size: 0.95rem;
    }

    .pricing-card .btn {
        width: 100%;
        padding: 14px 24px;
        min-height: 48px;
        font-size: 1.1rem;
    }

    /* Enhanced Resources Mobile */
    .resources {
        padding: 60px 0;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .resource-card {
        padding: 1.5rem;
        margin: 0 5px;
    }

    .resource-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .resource-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .resource-meta {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    /* Enhanced Team Section Mobile */
    .team {
        padding: 60px 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-member {
        padding: 1.5rem;
        margin: 0 5px;
    }

    .placeholder-image {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .team-member h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .member-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .member-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .member-credentials {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .member-credentials span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Enhanced Testimonials Mobile */
    .testimonials {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        margin: 0 5px;
    }

    .testimonial-card::before {
        font-size: 3rem;
        top: -8px;
        left: 15px;
    }

    .stars {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .testimonial-card p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .testimonial-author strong {
        font-size: 1rem;
    }

    .testimonial-author span {
        font-size: 0.85rem;
        display: block;
        margin-top: 0.2rem;
    }

    /* Enhanced Contact Form Mobile */
    .contact {
        padding: 60px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .contact-item {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .contact-item strong {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 0 5px;
    }

    .contact-form h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
        border-radius: 6px;
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

    .contact-form .btn {
        width: 100%;
        padding: 16px 24px;
        min-height: 52px;
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    /* Enhanced Footer Mobile */
    .footer {
        padding: 50px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .footer-section p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .footer-certifications {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cert {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }

    .demo-notice {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        line-height: 1.3;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Enhanced Container and General Mobile Styles */
    .container {
        padding: 0 16px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Enhanced touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 1rem;
        touch-action: manipulation;
    }

    /* Better text scaling */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .section-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .service-card,
    .resource-card,
    .team-member,
    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Enhanced Tax Calculator Mobile */
    .tax-calculator {
        padding: 60px 0;
    }

    .calculator-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .calculator-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .calculator-placeholder {
        padding: 2rem 1.5rem;
        margin: 0 5px;
    }

    .calculator-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .calculator-placeholder h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .calculator-placeholder p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0;
    }

    .calculator-placeholder .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
        min-height: 48px;
        font-size: 1.1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #ffffff;
    }
    
    .service-card,
    .pricing-card,
    .team-member,
    .testimonial-card {
        border: 2px solid #064e3b;
    }
}

/* Additional Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Optimize animations for mobile */
    .service-card:hover,
    .pricing-card:hover,
    .team-member:hover,
    .testimonial-card:hover,
    .resource-card:hover {
        transform: none;
    }

    /* Mobile-specific hover states */
    .service-card:active,
    .pricing-card:active,
    .team-member:active,
    .testimonial-card:active,
    .resource-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Ensure proper spacing between sections */
    section {
        margin-bottom: 0;
    }

    /* Optimize image loading on mobile */
    .placeholder-image {
        will-change: transform;
    }

    /* Prevent text selection on interactive elements */
    .hamburger,
    .btn {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Enhanced mobile navigation overlay */
    .nav-menu {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Improved touch interaction feedback */
    .btn:active {
        transform: scale(0.95);
    }
    
    .hamburger:active {
        transform: scale(0.95);
    }

    /* Prevent horizontal scrolling */
    * {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    /* Optimize viewport units for mobile browsers */
    .nav-menu {
        height: calc(100vh - 80px);
        height: calc(100dvh - 80px); /* Dynamic viewport height */
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin: 1rem 0;
    }

    .nav-menu {
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        padding: 1rem 0;
    }

    .nav-menu a {
        padding: 0.8rem 2rem;
    }

    .services,
    .pricing,
    .resources,
    .team,
    .testimonials,
    .contact {
        padding: 40px 0;
    }
}