/* Reset and Base Styles */
:root {
    --primary-color: #034769;    /* Deep blue */
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #086fa1;  /* Medium blue */
    --accent-color: #3ca0d0;     /* Light blue */
    --accent-hover: #63add0;     /* Lighter blue */
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --calculator-bg: #1a1a2e;
    --calculator-text: #fff;
    --dark-blue: #0f172a;
    --light-blue: #60a5fa;
    --text-light: #ffffff;       /* White text */
    --text-dark: #1e293b;
    --bg-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --card-bg: #ffffff;          /* White cards */
    --card-border: rgba(148, 163, 184, 0.1);
    --header-gradient: linear-gradient(to right, #0f172a, #1e293b);
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --menu-bg: rgba(15, 23, 42, 0.95);
    --text-color: #565656;       /* Dark gray text */
    --text-muted: #888888;       /* Muted text */
    --bg-color: #ffffff;         /* White background */
    --bg-secondary: #f5f5f5;     /* Light gray background */
    --transition: all 0.3s ease;
    --header-height: 80px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --border-color: #e5e5e5;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: var(--bg-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand .logo {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand .logo i {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link i {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-menu a:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-color);
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--box-shadow);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        text-align: center;
        border-radius: 8px;
    }

    .nav-link:hover {
        background: var(--bg-secondary);
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Desktop Menu Hover Effects */
@media (min-width: 769px) {
    .nav-menu a {
        position: relative;
        overflow: hidden;
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-menu a:hover::after {
        width: 80%;
    }
}

/* Hero Section */
.hero {
    padding: 0rem 0 4rem;
    position: relative;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(252, 60, 68, 0.1), transparent 50%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero-text {
    color: var(--text-color);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-color);
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Calculator Card Styles */
.calculator-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
}

.calculator-card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(60, 160, 208, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.calculate-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Remove any remaining icon-related styles */
.calculate-btn i,
.calculator-card i,
.form-group i {
    display: none;
}

/* Mobile menu is no longer needed */
.mobile-menu {
    display: none;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Footer Styles */
.footer {
    background: var(--bg-secondary);
    padding-top: 4rem;
}

.footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section.brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-section.brand .logo i {
    color: var(--accent-color);
}

.brand-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

.footer-section ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Result Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.active {
    display: flex;
}

.popup-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    position: relative;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary-color);
}

.result-details {
    margin-top: 1.5rem;
}

.result-details p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.result-details i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.result-details strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Legal Popup Styles */
.legal-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.legal-popup.active {
    display: flex;
}

.legal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legal-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.legal-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #444;
}

.legal-content ul {
    margin: 1rem 0 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #444;
    position: relative;
}

.legal-content li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
}

/* Scrollbar Styling */
.legal-content::-webkit-scrollbar {
    width: 8px;
}

.legal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.legal-content::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

.legal-content::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

.close-legal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    z-index: 1;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

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

.section-title {
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    background: #3498db;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background: #2980b9;
}

/* Contact Info Styles */
.contact-info {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-info i {
    color: #3498db;
    width: 20px;
    text-align: center;
}

.contact-social {
    margin-top: 1rem;
    gap: 1.5rem;
}

.contact-social a {
    font-size: 1.5rem;
    color: #3498db;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-social a:hover {
    color: #2980b9;
    transform: translateY(-2px);
}

/* FAQ Styles */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-item h4:hover {
    color: #3498db;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* FAQ Page Styles */
.faq-page {
    padding: 6rem 0 4rem;
    background: var(--bg-color);
}

.faq-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-page h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.faq-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-page .section-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 3rem 0 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.faq-page .faq-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.faq-page .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-page .faq-item h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.faq-page .faq-item h3::before {
    content: "Q:";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.faq-page .faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-left: 1.5rem;
}

@media (max-width: 768px) {
    .faq-page {
        padding: 5rem 1rem 3rem;
    }

    .faq-page h1 {
        font-size: 2rem;
    }

    .faq-page .section-title {
        font-size: 1.5rem;
    }

    .faq-page .faq-item h3 {
        font-size: 1.2rem;
    }

    .faq-page .faq-item {
        padding: 1.25rem;
    }
}

/* Main Content Spacing */
main {
    padding-top: var(--header-height);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* New Section Styles */

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
}

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

.step-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Use Cases Section */
.use-cases {
    padding: 6rem 0;
    background: var(--light-color);
}

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

.use-case-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.use-case-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Statistics Section */
.statistics {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: var(--light-color);
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    text-align: left;
}

.benefit-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-color);
}

.benefit-list li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Tools & Resources Section */
.tools-resources {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--calculator-bg) 0%, #1a1a2e 100%);
    color: var(--light-color);
}

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

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.tool-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

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

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    text-decoration: none;
    margin-top: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tool-link:hover {
    color: white;
}

.tool-link i {
    font-size: 1rem;
    margin: 0;
}

/* Latest Updates Section */
.updates {
    padding: 6rem 0;
    background: var(--light-color);
}

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

.update-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    transition: transform 0.3s ease;
}

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

.update-date {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.update-date .month {
    font-size: 1.2rem;
    font-weight: bold;
}

.update-date .year {
    font-size: 1rem;
    opacity: 0.8;
}

.update-content {
    padding: 1.5rem;
    flex: 1;
}

.update-content h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.update-content p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .benefits, .tools-resources, .updates {
        padding: 4rem 1rem;
    }

    .benefit-card, .tool-card {
        padding: 1.5rem;
    }

    .update-card {
        flex-direction: column;
    }

    .update-date {
        padding: 1rem;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .benefits-grid, .tools-grid, .updates-grid {
        grid-template-columns: 1fr;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
    }

    .benefit-icon i {
        font-size: 1.5rem;
    }
}

/* Contact Page Styles */
.contact-page {
    padding: 6rem 0 4rem;
    background: var(--bg-color);
}

.contact-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-page h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card,
.info-card,
.quick-faq-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.contact-card h2,
.info-card h2,
.quick-faq-card h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Contact Form Styles */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(60, 160, 208, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Contact Info Styles */
.info-card {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 2rem;
    text-align: center;
}

.info-content h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

.info-content .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.info-content .social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.info-content .social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Quick FAQ Card Styles */
.quick-faq-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
}

.quick-faq-card h2 {
    color: var(--text-light);
}

.quick-faq-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.quick-link i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-page h1 {
        font-size: 2rem;
    }

    .contact-info-section {
        grid-template-columns: 1fr;
    }

    .info-card,
    .quick-faq-card {
        margin-bottom: 1rem;
    }

    .contact-form .form-group {
        margin-bottom: 1rem;
    }
}

/* About Page Styles */
.about-page {
    padding-top: 80px;
}

.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: var(--text-light);
}

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

.about-intro {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.about-story {
    padding: 6rem 0;
    background: var(--bg-color);
}

.story-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.story-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.story-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.mission-values {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.mission-card, .values-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.mission-card h2, .values-card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.mission-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.values-list {
    display: grid;
    gap: 2rem;
}

.value-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.value-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.value-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-muted);
}

.team-section {
    padding: 6rem 0;
    background: var(--bg-color);
}

.team-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.team-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

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

.team-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image i {
    font-size: 3rem;
    color: var(--primary-color);
}

.team-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-muted);
    line-height: 1.6;
}

.about-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: var(--text-light);
}

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

.about-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .story-grid,
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .story-content h2,
    .mission-card h2,
    .values-card h2,
    .team-section h2,
    .about-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 4rem 0 3rem;
    }

    .about-page section {
        padding: 4rem 0;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .mission-card,
    .values-card {
        padding: 2rem;
    }

    .team-grid {
        gap: 2rem;
    }

    .value-item {
        gap: 1rem;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding-top: 80px;
    padding-bottom: 4rem;
    min-height: calc(100vh - 80px);
    background: var(--bg-color);
}

.legal-header {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.last-updated {
    font-size: 1rem;
    opacity: 0.8;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.legal-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.legal-section ul li {
    color: var(--text-muted);
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.6;
}

.legal-section ul li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.contact-info {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.contact-list li i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .legal-header {
        padding: 3rem 0;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .legal-content {
        padding: 0 1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }
}

/* Remove scrollbar styles */
.legal-content::-webkit-scrollbar,
.legal-popup::-webkit-scrollbar,
.legal-content::-webkit-scrollbar-track,
.legal-content::-webkit-scrollbar-thumb {
    display: none;
}

.legal-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile First Approach - Base styles for mobile */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Header Mobile Styles */
    .header {
        padding: 0.5rem 0;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .nav-brand .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-color);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
    }

    .nav-link {
        padding: 0.8rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }

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

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Calculator Card Mobile */
    .calculator-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .calculator-card h2 {
        font-size: 1.5rem;
    }

    /* Features Section Mobile */
    .features {
        padding: 3rem 1rem;
    }

    .features h2 {
        font-size: 1.8rem;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-section.brand .logo {
        justify-content: center;
    }

    .newsletter-form .form-group {
        flex-direction: column;
        gap: 1rem;
    }

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

    .footer-bottom .container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Tablet Styles */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Header Tablet */
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-color);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero Section Tablet */
    .hero {
        padding: 4rem 2rem;
    }

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

    .hero-text h1 {
        font-size: 2.5rem;
    }

    /* Features Section Tablet */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Footer Tablet */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Larger Tablets and Small Laptops */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Common Mobile/Tablet Fixes */
@media screen and (max-width: 1024px) {
    /* Typography */
    h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
    h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
    p { font-size: clamp(0.9rem, 2vw, 1rem); }

    /* Spacing */
    section {
        padding: clamp(2rem, 5vw, 4rem) 0;
    }

    /* Form Elements */
    input, 
    button, 
    .form-group {
        width: 100%;
        max-width: 100%;
    }

    /* Cards and Grids */
    .calculator-card,
    .feature-card,
    .benefit-card,
    .tool-card,
    .update-card {
        padding: clamp(1rem, 3vw, 2rem);
    }

    /* Navigation */
    .nav-brand .logo {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    /* Buttons */
    .calculate-btn,
    .submit-btn {
        padding: clamp(0.8rem, 2vw, 1rem);
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }

    /* Images and Icons */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Legal Pages */
    .legal-content {
        padding: 0 clamp(1rem, 3vw, 2rem);
    }

    .legal-section {
        margin-bottom: clamp(2rem, 5vw, 3rem);
    }

    /* Contact Form */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Tools Section */
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    /* Benefits Section */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Statistics Section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Updates Section */
    .updates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .nav-link:hover,
    .footer-section ul a:hover,
    .calculate-btn:hover,
    .submit-btn:hover {
        opacity: 1;
    }

    .feature-card:hover,
    .benefit-card:hover,
    .tool-card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .menu-toggle,
    .newsletter-form {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* Ensure proper display on landscape orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .nav-links.active {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Fix for devices with notches */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Ensure proper form element sizing on iOS */
@supports (-webkit-touch-callout: none) {
    input,
    button {
        font-size: 16px; /* Prevent zoom on focus */
    }
} 