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

:root {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --secondary-color: #8b5cf6;
    --accent-color: #a78bfa;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --light-gray: #e2e8f0;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    text-align: center;
}

.btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--dark-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.hidden {
    display: none !important;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    margin: 0;
    padding: 0;
}

.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    padding: 8px 4px;
    position: relative;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-color);
    padding: 8px;
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%; /* Position directly below header */
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    margin: 0 20px;
}

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

.mobile-dropdown-item {
    padding: 16px 24px;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--light-gray);
    display: block; /* Make it a block element for full-width click area */
}

.mobile-dropdown-item:hover {
    background: var(--gradient-primary);
    color: white;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}


/* Hero Section */
.hero {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%237c3aed' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--dark-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tool Categories */
.categories {
    padding: 100px 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

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

.category-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.category-desc {
    color: var(--gray-color);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Featured & Popular Tools */
.featured-tools, .popular-tools {
    padding: 100px 20px;
}

.featured-tools {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.popular-tools {
    background: white;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.tool-card {
    padding: 30px;
    text-align: center;
}

.tool-card a {
    display: block;
    height: 100%;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.tool-desc {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Category Page & Static Pages */
.page-container {
    padding: 100px 20px;
    min-height: 80vh;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 40px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Tool Page */
.tool-page {
    padding: 100px 20px;
    min-height: 80vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
}

.tool-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tool-title-page {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-intro {
    font-size: 1.2rem;
    color: var(--gray-color);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.calculator {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    margin-bottom: 4rem;
    border: 1px solid #f1f5f9;
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    background: white;
}

.results {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-top: 2.5rem;
    border-left: 6px solid var(--primary-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 10px;
}

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

.result-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.result-value {
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: right;
}

.result-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--gray-color);
    font-style: italic;
    padding: 16px;
    background: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

/* FAQ Section */
.faq {
    margin-top: 4rem;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.faq-question {
    padding: 24px;
    background-color: white;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f8fafc;
    line-height: 1.8;
}

.faq-answer.open {
    padding: 24px;
    max-height: 500px;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-toggle.open {
    transform: rotate(45deg);
}

/* Related Tools Section */
.related-tools {
    margin-top: 5rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
    border-top: 2px solid var(--light-gray);
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.related-tool-card {
    padding: 25px;
    text-align: center;
    background: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
}

.related-tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-tool-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Articles Section */
.articles {
    padding: 100px 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.article-card {
    height: 100%;
    padding: 30px;
    transition: var(--transition);
}

.article-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.15);
}

.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.4;
    flex-grow: 1;
}

.article-excerpt {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: auto;
}

.article-date {
    font-weight: 600;
}

/* Article Page */
.article-page {
    padding: 80px 20px;
    min-height: 80vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.article-title-page {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    line-height: 1.3;
}

.article-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--box-shadow);
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h2 {
    color: var(--dark-color);
    margin: 2.5rem 0 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content h3 {
    color: var(--dark-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--gray-color);
}

.article-content li {
    margin-bottom: 0.8rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 60px 20px 30px;
    margin-top: 0;
}

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

.footer-column h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #cbd5e1;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
    transform: translateX(5px);
}

.footer-about {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px) rotate(5deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 6px solid #f59e0b;
    padding: 24px;
    margin: 2.5rem 0;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: #92400e;
}

.disclaimer strong {
    color: #d97706;
}

/* How to Use Section */
.how-to-use {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: var(--border-radius);
    padding: 32px;
    margin: 3rem 0;
    border-left: 6px solid var(--secondary-color);
}

.how-to-use h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.how-to-use ol {
    margin-left: 24px;
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.how-to-use li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Tool Description */
.tool-description {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--border-radius);
    padding: 32px;
    margin: 3rem 0;
    border-left: 6px solid var(--primary-color);
}

.tool-description h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.tool-description p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .category-grid,
    .tool-grid,
    .related-tools-grid,
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .page-title,
    .tool-title-page,
    .article-title-page {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title,
    .tool-title-page,
    .article-title-page {
        font-size: 2rem;
    }
    
    .calculator,
    .article-content {
        padding: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 70px 20px;
    }
    
    .categories,
    .featured-tools,
    .popular-tools,
    .articles {
        padding: 70px 20px;
    }
    
    .tool-page,
    .page-container,
    .article-page {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-card,
    .tool-card {
        padding: 25px;
    }
    
    .tool-header,
    .page-header,
    .article-header {
        padding: 30px 20px;
    }
}
