:root {
            --primary: #4F46E5;
            --secondary: #22C55E;
            --bg: #F9FAFB;
            --text: #111827;
            --card-bg: #FFFFFF;
            --border: #E5E7EB;
            --glass-bg: rgba(255, 255, 255, 0.7);
            --input-bg: #FFFFFF;
        }

        [data-theme="dark"] {
            --primary: #6366f1;
            --secondary: #22C55E;
            --bg: #111827;
            --text: #F9FAFB;
            --card-bg: #1F2937;
            --border: #374151;
            --glass-bg: rgba(31, 41, 55, 0.7);
            --input-bg: #374151;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg);
            color: var(--text);
            line-height: 1.6;
            transition: background-color 0.3s ease, color 0.3s ease;
            overflow-x: hidden;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* Header */
        header {
            position: sticky;
            top: 1rem;
            z-index: 1000;
            margin: 0 1rem;
        }

        .navbar {
            background: rgb(255 255 255 / 30%);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 1rem;
            padding: 1rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--border);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary);
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.25rem;
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            border-radius: 0.5rem;
            transition: background-color 0.2s;
        }

        .theme-toggle:hover {
            background-color: var(--card-bg);
        }

        /* Mobile Menu */
        .mobile-controls {
            display: none;
            align-items: center;
            gap: 1rem;
        }

        .hamburger {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text);
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .hamburger.active {
            transform: rotate(90deg);
        }

        /* Back to Top */
        #back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            z-index: 1000;
            width: 3rem;
            height: 3rem;
            font-size: 1.25rem;
            border: none;
            background-color: var(--primary);
            color: white;
            cursor: pointer;
            border-radius: 50%;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
        }

        #back-to-top.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        #back-to-top:hover {
            background-color: var(--secondary);
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        .mobile-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--card-bg);
            border-radius: 0.5rem;
            margin-top: 0.5rem;
            padding: 1rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--border);
            flex-direction: column;
            gap: 1rem;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s, transform 0.3s;
        }

        .mobile-menu.active {
            display: flex;
            opacity: 1;
            transform: translateY(0);
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-controls {
                display: flex;
            }

            .navbar {
                padding: 0.75rem 1rem;
            }
        }

        /* Hero Section */
        .hero {
            position: relative;
            text-align: center;
            padding: 6rem 1.5rem;
            overflow: hidden;
        }

        .glow-1,
        .glow-2 {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
            opacity: 0.5;
            z-index: -1;
        }

        .glow-1 {
            width: 400px;
            height: 400px;
            background: var(--primary);
            top: 0;
            left: 10%;
        }

        .glow-2 {
            width: 300px;
            height: 300px;
            background: var(--secondary);
            bottom: 0;
            right: 10%;
        }

        [data-theme="dark"] .glow-1,
        [data-theme="dark"] .glow-2 {
            opacity: 0.25;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }

        h1 {
            font-size: 3rem;
            line-height: 1.2;
            margin-bottom: 1rem;
            font-weight: 800;
            overflow-wrap: break-word;
            word-wrap: break-word;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 180px;
            gap: 0.2rem;
        }

        .dynamic-wrapper {
            color: var(--primary);
        }

        .cursor {
            color: var(--primary);
            font-weight: 400;
            animation: blink 1s step-end infinite;
            margin-left: 0.1rem;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0;
            }
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2.25rem;
                min-height: 140px;
            }
        }

        .hero p {
            font-size: 1.25rem;
            opacity: 0.8;
            margin-bottom: 1rem;
        }

        /* Tool UI */
        .tool-ui {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 1rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .input-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            text-align: left;
        }

        .input-group label {
            font-weight: 600;
        }

        .tool-ui input[type="text"],
        .tool-ui input[type="number"] {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            font-size: 1rem;
            background: var(--input-bg);
            color: var(--text);
            transition: border-color 0.2s;
        }

        .tool-ui input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            font-size: 1.125rem;
            font-weight: 600;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: var(--secondary);
        }

        /* Sections */
        section {
            padding: 5rem 0;
        }

        .section-title {
            text-align: center;
            font-size: 2.25rem;
            margin-bottom: 3rem;
            font-weight: 700;
        }

        /* Grid Options */
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 1rem;
            padding: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        .card h3 {
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
        }

        .card p {
            opacity: 0.8;
            margin-bottom: 1rem;
        }

        /* How It Works Steps */
        .steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 2rem;
            text-align: center;
        }

        .step-number {
            width: 3.5rem;
            height: 3.5rem;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            margin: 0 auto 1.25rem;
        }

        /* SEO Content */
        .seo-content {
            background: var(--card-bg);
            padding: 3rem;
            border-radius: 1rem;
            border: 1px solid var(--border);
        }

        @media (max-width: 768px) {
            .seo-content {
                padding: 1.5rem;
            }
        }

        .seo-content h2 {
            margin-bottom: 1.5rem;
            font-size: 1.8rem;
        }

        .seo-content h3 {
            margin: 1.5rem 0 1rem;
            font-size: 1.3rem;
        }

        .seo-content p {
            margin-bottom: 1rem;
            opacity: 0.85;
        }

        .seo-content ul {
            padding-left: 1.5rem;
            margin-bottom: 1rem;
            opacity: 0.85;
        }

        .seo-content li {
            margin-bottom: 0.5rem;
        }

        /* FAQ */
        .faq-container {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .faq-item {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            overflow: hidden;
        }

        .faq-question {
            width: 100%;
            text-align: left;
            padding: 1.25rem 1.5rem;
            background: none;
            border: none;
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--text);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .faq-answer {
            padding: 0 1.5rem;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
            opacity: 0.8;
        }

        .faq-item.active .faq-answer {
            padding: 0 1.5rem 1.25rem;
            max-height: 500px;
            /* arbitrary height larger than content */
        }

        .faq-icon {
            transition: transform 0.3s ease;
        }

        .faq-item.active .faq-icon {
            transform: rotate(180deg);
        }

        /* CTA Section */
        .cta-section {
            background: linear-gradient(135deg, var(--primary), #3b82f6);
            color: white;
            border-radius: 1rem;
            padding: 5rem 2rem;
            text-align: center;
            margin: 0 auto;
        }

        .cta-section h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .cta-section p {
            font-size: 1.25rem;
            opacity: 0.9;
            margin-bottom: 2rem;
        }

        /* Footer */
       footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.2s;
    cursor: pointer;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.copyright {
    text-align: center;
    opacity: 0.6;
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}
/* new edited 12 april  */
.footer h2,
.footer h3 {
    margin-bottom: 10px;
}

.footer p {
    font-size: 14px;
    color: #ccc;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}
.footer-links a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.social-icons a {
  display: inline-flex;
  width: 35px;
  height: 35px;
  background: #222;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.social-icons svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.social-icons a:hover {
  background: #444;
}


        /* New Tool UI specific styles */
        .tool-heading {
            text-align: center;
            margin-bottom: 1rem;
        }

        .tool-heading h2 {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
            color: var(--primary);
        }

        .tool-heading p {
            opacity: 0.8;
            font-size: 0.95rem;
        }

        .tool-ui textarea {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            font-size: 1rem;
            background: var(--input-bg);
            color: var(--text);
            resize: vertical;
            transition: border-color 0.2s;
            font-family: inherit;
        }

        .tool-ui textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .options-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .options-group label {
            font-weight: 600;
            font-size: 0.9rem;
        }

        .pill-group {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .pill-btn {
            background: var(--input-bg);
            border: 1px solid var(--border);
            color: var(--text);
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
        }

        .pill-btn:hover {
            border-color: var(--primary);
        }

        .pill-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .checkbox-group {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            font-weight: normal !important;
            font-size: 0.95rem;
        }

        .separator-options {
            margin-left: 1.5rem;
            display: none;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .separator-options.active {
            display: flex;
        }

        .radio-group {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .radio-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            font-weight: normal !important;
            font-size: 0.95rem;
        }

        .result-section {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border);
            display: block;
        }

        /* .result-section.active {
            display: block;
            animation: fadeIn 0.5s ease;
        } */

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .stat-card {
            background: var(--input-bg);
            border: 1px solid var(--border);
            padding: 1rem;
            border-radius: 0.5rem;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary);
        }

        .stat-label {
            font-size: 0.8rem;
            opacity: 0.8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .action-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }

        .action-buttons .btn {
            flex: 1;
            padding: 0.75rem;
            font-size: 1rem;
        }

        .btn-outline {
            background: transparent;
            color: var(--text);
            border: 1px solid var(--border);
        }

        .btn-outline:hover {
            border-color: var(--primary);
            background: rgba(79, 70, 229, 0.05);
            color: var(--primary);
        }

        .btn-danger {
            background: transparent;
            color: #ef4444;
            border: 1px solid #ef4444;
        }

        .btn-danger:hover {
            background: #ef4444;
            color: white;
        }

        .output-box {
            width: 100%;
            min-height: 200px;
            padding: 1rem;
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            background: var(--input-bg);
            color: var(--text);
            font-family: inherit;
        }
        
        /* styles for ready to use section starts here */
.templates-container {
    width: 100%;
    max-width: 1200px;
    margin: 0px auto;
    padding: 0px 1.5rem;
}

.template-title {
    text-align: center;
    font-size: 2.25rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    font-weight: 700;
}
.template-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    padding: 15px;
}

.template-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.template-card h3 {
    margin: 0 0 8px;
}

.template-card p {
    font-size: 13px;
    color: #666;
}

select {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border-radius: 6px;
}

.preview-box {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 8px;
    height: 60px;
    overflow: auto;
    border-radius: 6px;
    font-size: 12px;
}

.btn-group {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.btn-group button {
    flex: 1;
    padding: 6px;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 15px;
}

.btn-group button.active {
    background: var(--primary);
    color: white;
}

.actions {
    display: flex;
    gap: 5px;
}

.actions button {
    flex: 1;
    padding: 8px;
    border: none;
    background:var(--primary);
    color: white;
    cursor: pointer;
    border-radius: 6px;
}
.copy-btn:disabled {
  background: #999;
  cursor: not-allowed;
}
 /* styles for ready to use section ends here */

        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }

            .action-buttons {
                flex-direction: column;
            }

            .logo {
                font-size: 12px;
            }
        }