/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('blog-cards.css');

:root {
    /* Colors - Logo Blue Theme (#006DFF) */
    --primary: #006DFF;
    /* Logo Blue */
    --primary-hover: #0056CC;
    /* Darker Blue */
    --primary-light: #E6F2FF;
    /* Light Blue 100 */
    --primary-dark: #004BB8;
    /* Deep Blue */

    --secondary: #1e293b;
    /* Sophisticated Dark Slate */
    --text-main: #0f172a;
    /* Deep Navy */
    --text-light: #64748b;
    /* Slate 500 */
    --background: #f0f7ff;
    /* Alice Blue / Lightest Blue */
    --surface: #ffffff;
    --primary-surface: #f0f7ff;
    /* Soft Blue Tint */

    --success: #10b981;
    /* Emerald 500 */
    --error: #ef4444;
    /* Red 500 */
    --warning: #f59e0b;
    /* Amber 500 */
    --accent: #0091FF;
    /* Bright accent blue */

    /* Spacing & Layout */
    --container-max: 1200px;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Shadows - More Organic */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 25px rgba(0, 109, 255, 0.2);
    --accent-glow: 0 0 30px rgba(0, 109, 255, 0.15);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    background-image:
        radial-gradient(at 0% 0%, hsla(210, 100%, 98%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(210, 100%, 96%, 1) 0, transparent 50%),
        radial-gradient(rgba(0, 109, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: inline-block;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.grid {
    display: grid;
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 109, 255, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background-color: var(--background);
    border-color: #cbd5e1;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.hero-blob {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 109, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
    pointer-events: none;
    animation: blobFloat 20s infinite alternate ease-in-out;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-30px, 40px) rotate(10deg);
    }
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
}

.hero a:not(.nav-link):not(.nav-logo):not(.btn),
.page-content a:not(.btn):not(.blog-card a):not(.related-tool-card a) {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.hero a:not(.nav-link):not(.nav-logo):not(.btn):hover,
.page-content a:not(.btn):not(.blog-card a):not(.related-tool-card a):hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
}

/* Spell Checker Tool */
.checker-tool {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    border: 2px solid rgb(101 146 205 / 80%);
}

.checker-area {
    width: 100%;
    min-height: 300px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.125rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.checker-area:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 109, 255, 0.1);
}

.checker-area:focus {
    border-color: var(--primary);
}

.checker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #cbd5e1;
}

.stats {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Features Grid */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: center;
}

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

.feature-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 30px;
    border: 2px solid rgb(101 146 205 / 80%);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-card:hover::before {
    opacity: 1;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

/* Content Pages */
.page-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    margin: 3rem auto;
    border: 1.5px solid #cbd5e1;
}

.prose {
    max-width: 65ch;
    margin: 0 auto;
}

.prose h2 {
    font-size: 1.875rem;
    margin: 2.5rem 0 1rem;
    color: var(--secondary);
}

.prose h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--secondary);
}

.prose p {
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.prose ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
}

/* Blog Internal Links */
.prose a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--primary-hover);
    text-decoration-thickness: 2px;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 1rem;
}

.footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
}

.checker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #cbd5e1;
}

.stats {
    color: var(--text-light);
    font-size: 0.9rem;
}


/* Related Tools Section */
.related-tools-section {
    margin-top: 5rem;
    margin-bottom: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #cbd5e1;
}

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

.related-tool-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 30px;
    border: 2px solid rgb(101 146 205 / 80%);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.related-tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-tool-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.related-tool-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* Mobile Responsive Design */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
    pointer-events: none;
    /* Ensure clicks pass through to button */
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }

    footer p {
        font-size: 0.8rem;
        line-height: 1.8;
    }

    .page-content {
        padding: 1rem;
    }
}

/* Tablets and Medium Devices */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0;
        border-bottom: none;
        margin-bottom: 0.5rem;
    }

    .nav-links li:last-child {
        margin-bottom: 0;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        color: var(--secondary);
        font-weight: 500;
        transition: all 0.2s ease;
    }

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

    .nav-link.active {
        background: var(--primary-light);
        color: var(--primary);
        font-weight: 600;
    }

    .nav-link::after {
        display: none;
        /* Remove underline on mobile */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-content {
        padding: 1.5rem;
    }

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

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

/* Footer Link Styles */
.footer-link {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.footer-link:hover {
    color: var(--primary) !important;
    border-bottom-color: var(--primary);
}

/* Large Tablets and Small Desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 900px;
    }

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

/* Large Desktops */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* ── FAQ Items (Global) ── */
.faq-item {
    margin-bottom: 1rem;
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    border-left: 4px solid var(--primary);
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-left-color: var(--accent);
    box-shadow: 0 4px 14px rgba(0, 109, 255, 0.06);
    transform: translateX(2px);
}

.faq-item h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem 0;
    padding: 0;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.4;
}

.faq-item p {
    margin: 0;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.95rem;
}