* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.header {
    background: linear-gradient(135deg, #f9fff9, #e8f5e9);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    flex-shrink: 0;
}

.logo span {
    color: #4CAF50;
}

.contact-info {
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-content {
    flex: 1;
}

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

.main-title {
    text-align: center;
    margin-bottom: 20px;
}

.main-title h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 10px;
}

.main-title .highlight {
    color: #4CAF50;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.calc-type {
    background:white;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calc-type:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.2);
}

.calc-type.active {
    background:#f8f9fa;
    border-color: #4CAF50;
}

.calc-type h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.calc-type p {
    color:#666;
    font-size: 14px;
    line-height: 1.5;
}

.calculator-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.calculator-title {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #4CAF50;
}

.calculate-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.4);
}

.results {
    display: none;
    margin-top: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.result-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.result-card h4 {
    color: #4CAF50;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.result-table {
    width: 100%;
    min-width: 240px;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-table th {
    background: #4CAF50;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.result-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.result-table tr:last-child td {
    border-bottom: none;
}

.amount {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.hidden {
    display: none;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: space-between;
    margin-left: 24px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.navbar a:hover {
    color: #4CAF50;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.about-section, .contact-section, .tax-slabs-section, .blog-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-section h2, .contact-section h2, .tax-slabs-section h2, .blog-section h2 {
    color: #333;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.about-section p {
    color: #666;
    line-height: 1.8;
    font-size: 18px;
    margin-bottom: 20px;
}

.about-section ul {
    color: #666;
    font-size: 18px;
    margin-left: 20px;
}

.about-section li {
    margin-bottom: 10px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 30px;
}

.contact-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.contact-card h3 {
    color: #4CAF50;
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-card p {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Business Calculator Styles */
.business-calculator {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.calculator-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.toggle-btn {
    padding: 12px 20px;
    border: 2px solid #4CAF50;
    background: white;
    color: #4CAF50;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.toggle-btn.active {
    background: #4CAF50;
    color: white;
}

.toggle-btn:first-child {
    border-radius: 10px 0 0 10px;
}

.toggle-btn:last-child {
    border-radius: 0 10px 10px 0;
}

/* Business Results Styling to Match Screenshot */
.business-result-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
}

.business-result-header {
    background: #4CAF50;
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    font-size: 18px;
}

.business-result-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.business-result-row:last-child {
    border-bottom: none;
}

.business-result-label {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    font-weight: 600;
    border-right: 1px solid #e0e0e0;
}

.business-result-value {
    flex: 1;
    padding: 15px;
    font-weight: bold;
    color: #333;
}

/* Tax Slabs Styles */
#tax-slabs-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tax-slabs-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tax-slabs-table th {
    background: #4CAF50;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.tax-slabs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.tax-slabs-table tr:nth-child(even) {
    background: #f8f9fa;
}

.year-selector {
    text-align: center;
    margin: 30px 0;
}

.year-selector select {
    padding: 10px 20px;
    font-size: 16px;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    background: white;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 8px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #4CAF50 !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown > a:after {
    content: " ▼";
    font-size: 12px;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 25px;
    margin: 30px 0;
}

.blog-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.blog-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.read-more {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Terms and Conditions Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.modal h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.modal h3 {
    color: #4CAF50;
    margin: 20px 0 10px 0;
}

.modal p, .modal li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #f9fff9, #e8f5e9);
    color: white;
    margin-top: auto;
    padding: 50px 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 220px;
}

.footer-section h3 {
    color: #000000;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-section ul li a::before {
    content: "▶";
    color: #4CAF50;
    font-size: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    background: #000000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(0, 0, 0);
    font-weight: bold;
    font-size: 20px;
}

.footer-logo span {
    font-size: 24px;
    font-weight: bold;
    color: rgb(0, 0, 0);
}

.footer-logo span .highlight {
    color: #4CAF50;
}

.contact-info-footer {
    margin-bottom: 20px;
}

.contact-info-footer p {
    color: #000000;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #000000;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.newsletter-box {
    background: #4CAF50;
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
}

.newsletter-box p {
    margin: 15px 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.newsletter-form input {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    width: 250px;
    max-width: 100%;
}

.newsletter-form button {
    padding: 10px 20px;
    background: white;
    color: #4CAF50;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .navbar {
        gap: 16px;
    }

    .navbar ul {
        gap: 12px;
    }

    .contact-info {
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .header {
        border-radius: 0;
    }

    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .navbar {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 12px 0 8px;
        border-top: 1px solid #e0e0e0;
        margin-top: 12px;
        margin-left: 0;
    }

    .navbar.open {
        display: flex;
    }

    .navbar ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navbar ul li {
        width: 100%;
        border-bottom: 1px solid #eef2ee;
    }

    .navbar a {
        display: block;
        padding: 14px 8px;
        min-height: 44px;
    }

    .contact-info {
        white-space: normal;
        font-size: 13px;
        padding: 14px 8px 4px;
        text-align: center;
    }

    .dropdown {
        display: block;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background: #f8f9fa;
        min-width: 100%;
        border-radius: 8px;
        margin: 0 0 8px;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.open:hover .dropdown-content,
    .dropdown.open .dropdown-content {
        display: block;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

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

    .results-grid,
    .calculator-types,
    .contact-info-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .calculator-types,
    .contact-info-grid,
    .blog-grid {
        min-width: 0;
    }

    .calc-type,
    .blog-card,
    .contact-card {
        min-width: 0;
    }

    .main-title h1 {
        font-size: 2rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .subtitle {
        font-size: 16px;
        padding: 0 4px;
        margin-bottom: 28px;
    }

    .calculator-section,
    .about-section,
    .contact-section,
    .tax-slabs-section,
    .blog-section {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .calculator-title,
    .about-section h2,
    .contact-section h2,
    .tax-slabs-section h2,
    .blog-section h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .about-section p,
    .about-section ul {
        font-size: 16px;
    }

    .calculator-toggle {
        flex-direction: column;
    }

    .toggle-btn {
        width: 100%;
        border-radius: 10px !important;
        margin-bottom: 8px;
        min-height: 44px;
    }

    .business-calculator {
        padding: 16px;
    }

    .business-result-row {
        flex-direction: column;
    }

    .business-result-label {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .amount {
        font-size: 16px;
        word-break: break-word;
    }

    .result-table td,
    .tax-slabs-table td,
    .tax-slabs-table th {
        padding: 10px 8px;
        font-size: 14px;
    }

    .year-selector select {
        width: 100%;
        max-width: 100%;
    }

    .modal-content {
        width: 94%;
        margin: 8% auto;
        padding: 20px 16px;
        max-height: 85vh;
    }

    .footer {
        padding: 32px 16px;
        border-radius: 16px 16px 0 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 28px;
    }

    .footer-section {
        min-width: 0;
        width: 100%;
    }

    .footer-logo {
        flex-wrap: wrap;
    }

    .footer-bottom p {
        font-size: 13px;
        line-height: 1.5;
        padding: 0 8px;
    }

    .newsletter-box {
        padding: 22px 16px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .main-title h1 {
        font-size: 1.65rem;
    }

    .calc-type {
        padding: 18px;
    }

    .calc-type h3 {
        font-size: 18px;
    }

    input, select {
        font-size: 16px;
    }
}