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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ec 100%);
    overflow-x: hidden;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f093fb;
    transition: color 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/jinrong.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(240, 147, 251, 0.5);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin: 3rem 0;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta .btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(240, 147, 251, 0.5);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    animation: pulse 2s infinite;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(240, 147, 251, 0.5);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    animation: pulse 2s infinite;
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    animation: pulse 2s infinite;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a365d;
}

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

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #1a365d;
    font-weight: 700;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Tools Hero Section */
.tools-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.tools-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.tools-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Tools Grid Section */
.tools-grid-section {
    padding: 4rem 0;
    background-color: #f5f7fa;
}

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

.tool-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.tool-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.tool-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    transition: background 0.3s ease;
}

.tool-card:hover .placeholder-image {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.tool-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a365d;
    line-height: 1.3;
    font-weight: 700;
}

.tool-content p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.tool-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-content .btn {
    margin-top: auto;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-align: center;
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.3);
}

.tool-content .btn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
}

/* Calculator Form Styles */
.calculator-section {
    padding: 4rem 0;
    background-color: #f7fafc;
    text-align: center;
}

.calculator-section h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.calculator-section p {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 0;
}

.calculator-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.calculator-inputs, .calculator-form {
    padding: 2.5rem;
    flex: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.calculator-results, .results {
    padding: 2.5rem;
    flex: 1;
    background: linear-gradient(135deg, #4fd1c7 0%, #38b2ac 100%);
    color: white;
}

.calculator-results h3, .results h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.calculator-form {
    display: grid;
    gap: 1.75rem;
}

.form-group, .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.form-group label, .input-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.form-group input, .form-group select, .input-group input, .input-group select {
    padding: 1.1rem 1.4rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.form-group input:focus, .form-group select:focus, .input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.form-group input:hover, .form-group select:hover, .input-group input:hover, .input-group select:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calculate-btn, .calc-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.calculate-btn:hover, .calc-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
}

.calculate-btn:active, .calc-btn:active {
    transform: translateY(0);
}

.result-item, .allocation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid white;
}

.result-label, .allocation-label {
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.result-value, .allocation-value {
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.result-item:last-child, .allocation-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.allocation-description {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

/* Default result styles - overridden by calculator-specific styles */
.result-label {
    font-weight: 500;
    color: #64748b;
}

.result-value {
    font-weight: 700;
    color: #1a365d;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: white;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a365d;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #475569;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background-color: #f5f7fa;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a365d;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #475569;
}

.contact-email {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4fd1c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #38b2ac;
}

/* Usage Guide Section */
.usage-guide {
    padding: 4rem 0;
    background-color: white;
}

.usage-guide h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #1a365d;
}

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

.guide-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.guide-section:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.guide-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.guide-section:hover::before {
    left: 100%;
}

.guide-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4fd1c7;
}

.guide-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.guide-section p {
    margin-bottom: 1.5rem;
    color: #64748b;
    line-height: 1.6;
}

.guide-section ol, .guide-section ul {
    padding-left: 1.5rem;
    color: #64748b;
    line-height: 1.7;
}

.guide-section li {
    margin-bottom: 0.8rem;
}

.guide-section li strong {
    color: #1a365d;
}

/* Policy Pages */
.policy-page {
    padding: 4rem 0;
    background-color: white;
}

.policy-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a365d;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.policy-content h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #334155;
}

.policy-content p {
    margin-bottom: 1rem;
    color: #475569;
    line-height: 1.7;
}

.policy-content ul, .policy-content ol {
    margin-bottom: 1rem;
    margin-left: 1.5rem;
    color: #475569;
}

.policy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: #f8fafc;
    border-radius: 5px;
    overflow: hidden;
}

.policy-table th, .policy-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.policy-table th {
    background-color: #1a365d;
    color: white;
    font-weight: 600;
}

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

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #4fd1c7;
}

.footer-section p, .footer-section li {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #94a3b8;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

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

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #667eea;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.7;
    opacity: 0.9;
}

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

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

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    padding: 0.25rem 0;
    position: relative;
}

.footer-section ul li a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #667eea;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #cbd5e1;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-bottom p {
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    }

    nav.active {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .features h2, .tools-section h2, .about-section h2, .contact-section h2, .policy-page h1 {
        font-size: 2rem;
    }

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

    .calculator-container {
        padding: 1.5rem;
    }

    .calculator-inputs {
        display: grid;
        gap: 1.5rem;
    }

    .input-group {        display: flex;        flex-direction: column;    }

    .input-group label {        margin-bottom: 0.75rem;        font-weight: 700;        color: #1a365d;        font-size: 1.05rem;    }

    .input-group input, .input-group select {        padding: 1rem 1.2rem;        border: 2px solid #e2e8f0;        border-radius: 12px;        font-size: 1.1rem;        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);        background-color: white;        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);    }

    .input-group input:focus, .input-group select:focus {        outline: none;        border-color: #667eea;        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);        transform: translateY(-1px);    }

    .input-group input:hover, .input-group select:hover {        border-color: #667eea;        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);    }

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

    .cta {
        padding: 3rem 0;
        margin: 1.5rem 0;
        border-radius: 8px;
    }

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

    .cta p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cta .btn {
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
    }

    /* Tools Page Responsive */
    .tools-hero {
        padding: 3rem 0;
    }

    .tools-hero h1 {
        font-size: 2.2rem;
    }

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

    .tools-grid-section {
        padding: 3rem 0;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .tool-image {
        height: 180px;
    }

    .tool-content {
        padding: 1.5rem;
    }

    .tool-content h3 {
        font-size: 1.3rem;
    }

    .placeholder-image {
        font-size: 1rem;
    }

    /* Calculator mobile styles */
    .calculator-section {
        padding: 2rem 1rem;
    }

    .calculator-section h1 {
        font-size: 2rem;
    }

    .calculator-section p {
        font-size: 1rem;
    }

    .calculator-container {
        flex-direction: column;
        margin: 0 1rem;
        padding: 0;
        border-radius: 20px;
        overflow: hidden;
    }

    .calculator-inputs, .calculator-form,
    .calculator-results, .results {
        padding: 2rem;
        border-radius: 0;
    }

    .calculator-inputs, .calculator-form {
        border-bottom: 1px solid #e2e8f0;
    }

    .form-group input, .form-group select,
    .input-group input, .input-group select {
        padding: 1rem 1.2rem;
        border-radius: 12px;
        font-size: 1.1rem;
        border: 2px solid #e2e8f0;
    }

    .result-item, .allocation-item {
        padding: 1.25rem;
        border-radius: 12px;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .result-item:hover, .allocation-item:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .result-value, .allocation-value {
        font-size: 1.3rem;
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 85vh;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 12px;
        margin: 0 1rem;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-label, .allocation-label {
        margin-bottom: 0.5rem;
        font-size: 1.05rem;
    }

    .result-value, .allocation-value {
        font-size: 1.4rem;
    }

    .policy-table {
        font-size: 0.95rem;
    }

    .policy-table th, .policy-table td {
        padding: 0.8rem;
    }

    .calculator-results {
        margin-top: 1.5rem;
    }

    .tool-card img {
        height: 160px;
    }

    .tool-content {
        padding: 1.5rem;
    }

    .tool-content h3 {
        font-size: 1.3rem;
    }

    .tool-content p {
        font-size: 1rem;
    }

    .calculate-btn, .calc-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        margin-top: 1rem;
    }

    /* Mobile touch targets */
a, button, input[type="submit"], input[type="reset"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
}

/* Back to Top Button Styles */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#back-to-top:active {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    #back-to-top {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    #back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

/* ===============================================
     About, Contact, Privacy & Terms Pages Styles
   =============================================== */

/* Common Page Container */
.about-section, .contact-section, .privacy-section, .terms-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Page Title */
.about-section h1, .contact-section h1, .privacy-section h1, .terms-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section p:first-of-type, 
.contact-section p:first-of-type, 
.privacy-section p:first-of-type, 
.terms-section p:first-of-type {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Content Container */
.about-content, .contact-container, .privacy-content, .terms-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content:hover, .contact-container:hover, .privacy-content:hover, .terms-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

/* About Page Specific Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    padding: 3rem;
}

.about-text h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 2rem;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.about-text ul li {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.6;
}

.about-text ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    align-self: start;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Contact Page Specific Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.contact-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-email {
    display: inline-block;
    font-size: 1.125rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
}

.contact-email:hover {
    color: #8b5cf6;
}

.contact-email:hover::after {
    width: 100%;
}

.contact-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    align-self: start;
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.contact-image:hover img {
    transform: scale(1.05);
}

/* Privacy and Terms Pages Specific Styles */
.privacy-content, .terms-content {
    padding: 3rem;
}

.privacy-content h2, .terms-content h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3b82f6;
}

.privacy-content h3, .terms-content h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-content p, .terms-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}

.privacy-content ul, .terms-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.privacy-content ul li, .terms-content ul li {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.6;
}

.privacy-content ul li::before, .terms-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.privacy-content ul li strong, .terms-content ul li strong {
    color: #1e293b;
    font-weight: 600;
}

.privacy-content a, .terms-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.privacy-content a::after, .terms-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
}

.privacy-content a:hover, .terms-content a:hover {
    color: #8b5cf6;
}

.privacy-content a:hover::after, .terms-content a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content, .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .about-section h1, .contact-section h1, .privacy-section h1, .terms-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-section, .contact-section, .privacy-section, .terms-section {
        padding: 3rem 1.5rem;
    }
    
    .about-content, .contact-container, .privacy-content, .terms-content {
        padding: 1.5rem;
    }
    
    .about-section h1, .contact-section h1, .privacy-section h1, .terms-section h1 {
        font-size: 2rem;
    }
    
    .about-text h2, .privacy-content h2, .terms-content h2 {
        font-size: 1.75rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .contact-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .about-section, .contact-section, .privacy-section, .terms-section {
        padding: 2rem 1rem;
    }
    
    .about-content, .contact-container, .privacy-content, .terms-content {
        padding: 1rem;
    }
    
    .about-section h1, .contact-section h1, .privacy-section h1, .terms-section h1 {
        font-size: 1.75rem;
    }
    
    .about-text h2, .privacy-content h2, .terms-content h2 {
        font-size: 1.5rem;
    }
    
    .about-text p, .contact-details p, .privacy-content p, .terms-content p {
        font-size: 1rem;
    }
    
    .about-text ul li, .privacy-content ul li, .terms-content ul li {
        font-size: 1rem;
        padding-left: 2rem;
    }
}