/* HERO SECTION */
.hero-section { 
    margin-top: 0;
padding: 10px 20px 80px 20px;
    text-align: center; 
}

.hero-section h1 { 
    font-size: 45px; 
    font-weight: 800; 
    margin-bottom: 15px; 
    /* margin-top: 0; /* Ensures the H1 doesn't add its own large top space */
    color: var(--text-main); 
}

.hero-section p { 
    font-size: 18px; 
    color: var(--text-muted); /* Merged theme variable */
    max-width: 800px; 
    margin: 0 auto 50px; 
}

/* TOOLS GRID */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: var(--card-bg); /* Merged theme variable */
    padding: 35px;
    border-radius: 20px;
    border: 1px solid var(--border-color); /* Merged theme variable */
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--shadow); /* Merged theme variable */
    text-decoration: none;
    display: block;
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary); /* Keeps brand consistency */
}

/* CARD ICONS */
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Tool Colors (Adjusted for visibility in both modes) */
.red { background: rgba(229, 62, 62, 0.1); color: #e53e3e; }
.orange { background: rgba(221, 107, 32, 0.1); color: #dd6b20; }
.green { background: rgba(56, 161, 105, 0.1); color: #38a169; }
.blue { background: rgba(49, 130, 206, 0.1); color: #3182ce; }

.tool-card h3 { 
    font-size: 20px; 
    margin: 0 0 10px 0; 
    color: var(--text-main); /* Merged theme variable */
}

.tool-card p { 
    font-size: 14px; 
    color: var(--text-muted); /* Merged theme variable */
    line-height: 1.5; 
    margin: 0; 
}

/* START: MERGED FOOTER SECTION */
.footer {
    margin-top: 80px;
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background-color: transparent;
}

.footer-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer span {
    color: #e74c3c;
    font-weight: 800;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links a {
    text-decoration: none;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e74c3c;
}

/* Dark Mode Footer Adjustment */
body.dark-mode .footer {
    border-top-color: var(--border-color);
}

/* Coming Soon Styling */
.tool-card.coming-soon {
    cursor: not-allowed;
    opacity: 0.8;
}

.tool-card.coming-soon:hover {
    transform: none; /* No lift effect for inactive tools */
    box-shadow: var(--shadow);
    border-color: var(--border-color);
}

.badge {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gray {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

/* Dark Mode Adjustment for Badge */
body.dark-mode .badge {
    background: #334155;
    color: #cbd5e1;
}
/* END: MERGED FOOTER SECTION */