:root {
        --primary-color: #FE2C55;
        --primary-hover: #e01e4d;
        --secondary-color: #25F4EE;
        --secondary-hover: #1de0d8;
        --dark-color: #0F0F0F;
        --light-color: #FFFFFF;
        --gray-color: #F1F1F2;
        --border-radius: 12px;
        --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        
        /* Notification Colors */
        --success-color: #4BB543;
        --error-color: #FF3333;
        --warning-color: #FF9500;
        --info-color: #2F80ED;

        /* Responsive breakpoints */
        --breakpoint-mobile: 480px;
        --breakpoint-tablet: 768px;
        --breakpoint-desktop: 992px;
        --breakpoint-large: 1200px;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    }

    body {
        background-color: #f8fafc;
        color: var(--dark-color);
        line-height: 1.6;
        position: relative;
        min-height: 100vh;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Improved Hero Section with better mobile handling */
    .hero {
        background: var(--gradient);
        color: white;
        padding: 3rem 1.5rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    @media (min-width: 768px) {
        .hero {
            padding: 4rem 2rem;
        }
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('https://images.unsplash.com/photo-1611162617213-7d7a39e9b1d7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center;
        background-size: cover;
        opacity: 0.15;
        z-index: 0;
    }

    .hero-content {
        position: relative;
        z-index: 1;
        max-width: 800px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

    @media (min-width: 768px) {
        .hero h1 {
            font-size: 2rem;
        }
        .hero p {
            font-size: 1.2rem;
        }
    }

    /* Enhanced Navigation Bar with mobile menu */
    .navbar {
        background-color: var(--light-color);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        position: sticky;
        top: 0;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    @media (min-width: 768px) {
        .navbar {
            padding: 0.4rem 2rem;
        }
    }

    .logo {
        display: flex;
        align-items: center;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--light-color);
        text-decoration: none;
    }

    .logo img {
        height: 40px;
        margin-right: 12px;
        margin-left: 12px;
    }

    @media (min-width: 768px) {
        .logo {
            font-size: 1.8rem;
        }
        .logo img {
            height: 40px;
            margin-right: 12px;
            margin-left: 12px;
        }
    }

    /* Mobile menu styles - FIXED */
   .mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--light-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1001;
    overflow-y: auto;
   }

    .mobile-menu.active {
    right: 0;
    }
    
    .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.mobile-menu-logo img {
    height: 30px;
    margin-right: 10px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
}

.mobile-menu-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-links li {
    margin: 0;
    width: 100%;
}

.mobile-nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.mobile-nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(254, 44, 85, 0.05);
    border-left-color: var(--primary-color);
}

.mobile-nav-links .active-link {
    color: var(--primary-color);
    background-color: rgba(254, 44, 85, 0.05);
    border-left-color: var(--primary-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}


    .nav-links {
        display: none;
        list-style: none;
        align-items: center;
    }

    @media (min-width: 768px) {
        .nav-links {
            display: flex;
        }
    }

    .nav-links li {
        margin-left: 1.5rem;
    }

    @media (min-width: 992px) {
        .nav-links li {
            margin-left: 2.5rem;
        }
    }

    .nav-links a {
        color: var(--dark-color);
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition);
        position: relative;
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    @media (min-width: 992px) {
        .nav-links a {
            font-size: 1.05rem;
        }
    }

    .nav-links a:hover {
        color: var(--primary-color);
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background-color: var(--primary-color);
        transition: var(--transition);
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .active-link {
        color: var(--primary-color) !important;
    }

    .active-link::after {
        width: 100% !important;
    }

    .nav-cta {
        background-color: var(--primary-color);
        color: white !important;
        padding: 0.6rem 1.2rem;
        border-radius: 50px;
        transition: var(--transition);
    }

    @media (min-width: 768px) {
        .nav-cta {
            padding: 0.7rem 1.5rem;
        }
    }

    .nav-cta:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(254, 44, 85, 0.3);
    }

    .nav-cta::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--dark-color);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1002;
        padding: 0.5rem;
        transition: var(--transition);
    }

    .mobile-menu-btn .fa-times {
        display: none;
    }

    .mobile-menu-btn.active .fa-bars {
        display: none;
    }

    .mobile-menu-btn.active .fa-times {
        display: block;
    }

    @media (min-width: 768px) {
        .mobile-menu-btn {
            display: none;
        }
    }

    /* Main Content with improved spacing */
    .main-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 1.5rem;
    }

    @media (min-width: 768px) {
        .main-container {
            padding: 2rem;
        }
    }

    .tool-container {
        background-color: var(--light-color);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        padding: 1.5rem;
        margin-top: -60px;
        position: relative;
        z-index: 2;
    }

    @media (min-width: 768px) {
        .tool-container {
            padding: 2rem;
            margin-top: -60px;
        }
    }

    @media (min-width: 992px) {
        .tool-container {
            padding: 3rem;
            margin-top: -60px;
        }
    }

    .tool-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: var(--gradient);
    }

    /* Typography with responsive sizes */
    h1, h2, h3, h4 {
        color: var(--dark-color);
        font-weight: 700;
        line-height: 1.3;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        position: relative;
        padding-bottom: 12px;
    }

    @media (min-width: 768px) {
        h1 {
            font-size: 2.2rem;
            margin-bottom: 1.5rem;
            padding-bottom: 15px;
        }
    }

    h1::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 4px;
        background: var(--gradient);
        border-radius: 2px;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    @media (min-width: 768px) {
        h2 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }
    }

    h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    @media (min-width: 768px) {
        h3 {
            font-size: 1.5rem;
        }
    }

    .section-title {
        text-align: center;
        margin: 3rem 0 2rem;
    }

    @media (min-width: 768px) {
        .section-title {
            margin: 4rem 0 3rem;
        }
    }

    .section-title h2 {
        font-size: 1.8rem;
        color: var(--primary-color);
    }

    @media (min-width: 768px) {
        .section-title h2 {
            font-size: 2.2rem;
        }
    }

    .section-title p {
        color: #666;
        font-size: 1rem;
        max-width: 700px;
        margin: 0 auto 1rem;
    }

    @media (min-width: 768px) {
        .section-title p {
            font-size: 1.1rem;
            margin: 0 auto 2rem;
        }
    }

    /* Enhanced Form Styles for mobile */
    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-row {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    @media (min-width: 768px) {
        .form-row {
            flex-direction: row;
            gap: 1.8rem;
            margin-bottom: 1.8rem;
        }
    }

    .form-row .form-group {
        flex: 1;
    }

    label {
        display: block;
        margin-bottom: 0.6rem;
        font-weight: 600;
        font-size: 0.95rem;
        color: #444;
    }

    @media (min-width: 768px) {
        label {
            margin-bottom: 0.8rem;
            font-size: 1rem;
        }
    }

    textarea, select, input[type="number"] {
        width: 100%;
        padding: 0.9rem 1.1rem;
        border: 1px solid #e0e0e0;
        border-radius: var(--border-radius);
        font-size: 0.95rem;
        transition: var(--transition);
        background-color: #f9f9f9;
    }

    @media (min-width: 768px) {
        textarea, select, input[type="number"] {
            padding: 1rem 1.2rem;
            font-size: 1rem;
        }
    }

    textarea:focus, select:focus, input[type="number"]:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
        background-color: var(--light-color);
    }

    textarea {
        resize: vertical;
        min-height: 140px;
        line-height: 1.6;
    }

    @media (min-width: 768px) {
        textarea {
            min-height: 160px;
        }
    }

    .char-counter {
        text-align: right;
        font-size: 0.8rem;
        color: #888;
        margin-top: 0.4rem;
    }

    @media (min-width: 768px) {
        .char-counter {
            font-size: 0.85rem;
            margin-top: 0.5rem;
        }
    }

    .radio-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    @media (min-width: 480px) {
        .radio-group {
            flex-direction: row;
            gap: 2rem;
        }
    }

    .radio-group label {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        font-weight: 500;
        cursor: pointer;
        font-size: 0.95rem;
        color: #444;
        transition: var(--transition);
    }

    @media (min-width: 768px) {
        .radio-group label {
            font-size: 1rem;
        }
    }

    .radio-group label:hover {
        color: var(--primary-color);
    }

    .radio-group input[type="radio"] {
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #ddd;
        border-radius: 50%;
        transition: var(--transition);
        position: relative;
        cursor: pointer;
    }

    @media (min-width: 768px) {
        .radio-group input[type="radio"] {
            width: 20px;
            height: 20px;
        }
    }

    .radio-group input[type="radio"]:checked {
        border-color: var(--primary-color);
    }

    .radio-group input[type="radio"]:checked::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background-color: var(--primary-color);
        border-radius: 50%;
    }

    @media (min-width: 768px) {
        .radio-group input[type="radio"]:checked::after {
            width: 10px;
            height: 10px;
        }
    }

    /* Buttons with better touch targets */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        border-radius: var(--border-radius);
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
        border: none;
        gap: 0.6rem;
        min-height: 48px; /* Better touch target for mobile */
    }

    @media (min-width: 768px) {
        .btn {
            padding: 1rem 2rem;
            font-size: 1.05rem;
            gap: 0.8rem;
        }
    }

    .btn-primary {
        background-color: var(--primary-color);
        color: white;
    }

    .btn-primary:hover {
        background-color: var(--primary-hover);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(254, 44, 85, 0.3);
    }

    .btn-secondary {
        background-color: var(--secondary-color);
        color: var(--dark-color);
    }

    .btn-secondary:hover {
        background-color: var(--secondary-hover);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(37, 244, 238, 0.3);
    }

    .btn-outline {
        background-color: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }

    .btn-outline:hover {
        background-color: rgba(254, 44, 85, 0.05);
        transform: translateY(-3px);
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }

    @media (min-width: 768px) {
        .btn-lg {
            padding: 1.2rem 2.5rem;
            font-size: 1.1rem;
        }
    }

    .btn-block {
        width: 100%;
    }

    .btn .spinner {
        display: none;
        width: 18px;
        height: 18px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: white;
        animation: spin 1s ease-in-out infinite;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* Dynamic button text */
    .btn-text {
        transition: var(--transition);
    }

    /* Loading state for generate button */
    .generate-btn.loading .btn-text::after {
        content: "ing...";
    }

    .generate-btn.loading .spinner {
        display: inline-block;
    }

    /* Results section with better mobile spacing */
    .result-container {
        margin-top: 2rem;
        padding: 1.5rem;
        border: 1px solid #eaeaea;
        border-radius: var(--border-radius);
        background-color: #fefefe;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    }

    @media (min-width: 768px) {
        .result-container {
            margin-top: 2.5rem;
            padding: 2rem;
        }
    }

    .hidden {
        display: none;
    }

    /* Content sections styling */
    .content-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
        border: 1px solid #e0e0e0;
        border-radius: var(--border-radius);
        background-color: #fafafa;
        position: relative;
    }

    .content-section h3 {
        margin-bottom: 1rem;
        color: var(--primary-color);
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    @media (min-width: 768px) {
        .content-section h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }
    }

    .content-result {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid #ddd;
        min-height: 60px;
        line-height: 1.6;
        font-size: 0.95rem;
        margin-bottom: 1rem;
        white-space: pre-wrap;
    }

    .content-box {
        background-color: var(--gray-color);
        border-radius: var(--border-radius);
        border-left: 4px solid var(--primary-color);
        position: relative;
        overflow: hidden;
    }

    .content-text {
        padding: 1.2rem;
        line-height: 1.6;
        font-size: 0.95rem;
        color: var(--dark-color);
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    @media (min-width: 768px) {
        .content-text {
            padding: 1.5rem;
            font-size: 1rem;
        }
    }

    .hashtag-result {
        margin-bottom: 0;
    }

    .hashtag-result ol {
        padding-left: 1.2rem;
        margin: 0;
    }

    .hashtag-result ol li {
        margin-bottom: 0.6rem;
        padding-left: 0.5rem;
    }

    @media (min-width: 768px) {
        .hashtag-result ol {
            padding-left: 1.5rem;
        }
        .hashtag-result ol li {
            margin-bottom: 0.8rem;
        }
    }

    .copy-section-btn {
        background-color: var(--secondary-color);
        color: var(--dark-color);
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-size: 0.85rem;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    @media (min-width: 768px) {
        .copy-section-btn {
            padding: 0.6rem 1rem;
            font-size: 0.85rem;
            gap: 0.5rem;
        }
    }

    .copy-section-btn:hover {
        background-color: var(--secondary-hover);
        transform: translateY(-2px);
    }

    .copy-section-btn.copied {
        background-color: var(--success-color);
        color: white;
    }

    .copy-section-btn.copied:hover {
        background-color: var(--success-color);
        transform: none;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.2rem;
    }

    @media (min-width: 480px) {
        .action-buttons {
            flex-direction: row;
        }
    }

    @media (min-width: 768px) {
        .action-buttons {
            margin-top: 1.5rem;
        }
    }
    
    .reset-btn {
        background-color: #f8f9fa;
        color: var(--dark-color);
        border: 1px solid #ddd;
        padding: 12px 16px;
        border-radius: var(--border-radius);
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
    }

    @media (min-width: 768px) {
        .reset-btn {
            padding: 14px 20px;
            font-size: 1rem;
        }
    }

    .reset-btn:hover {
        background-color: #e9ecef;
        border-color: #ced4da;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .reset-btn:active {
        transform: translateY(0);
    }

    /* Notification System with better mobile behavior */
    .notification-container {
        position: fixed;
        top: 20px;
        right: 20px;
        width: calc(100% - 40px);
        max-width: 350px;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    @media (min-width: 480px) {
        .notification-container {
            top: 30px;
            right: 30px;
            width: 350px;
            max-width: calc(100% - 60px);
            gap: 15px;
        }
    }

    .notification {
        padding: 16px;
        border-radius: var(--border-radius);
        color: white;
        display: flex;
        align-items: flex-start;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        transform: translateX(400px);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        opacity: 0;
        position: relative;
        overflow: hidden;
    }

    @media (min-width: 480px) {
        .notification {
            padding: 18px 20px;
        }
    }

    .notification::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: rgba(255, 255, 255, 0.4);
    }

    .notification::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: white;
        transform: scaleX(1);
        transform-origin: left;
        transition: transform linear;
    }

    .notification.show {
        transform: translateX(0);
        opacity: 1;
    }

    .notification.hide {
        transform: translateX(400px);
        opacity: 0;
    }

    .notification.success {
        background-color: var(--success-color);
    }

    .notification.error {
        background-color: var(--error-color);
    }

    .notification.warning {
        background-color: var(--warning-color);
    }

    .notification.info {
        background-color: var(--info-color);
    }

    .notification-icon {
        margin-right: 12px;
        font-size: 20px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    @media (min-width: 480px) {
        .notification-icon {
            margin-right: 15px;
            font-size: 22px;
        }
    }

    .notification-content {
        flex: 1;
    }

    .notification-title {
        font-weight: 600;
        margin-bottom: 4px;
        font-size: 1rem;
    }

    @media (min-width: 480px) {
        .notification-title {
            font-size: 1.05rem;
            margin-bottom: 5px;
        }
    }

    .notification-message {
        font-size: 0.9rem;
        line-height: 1.5;
        opacity: 0.9;
    }

    @media (min-width: 480px) {
        .notification-message {
            font-size: 0.95rem;
        }
    }

    .notification-close {
        background: none;
        border: none;
        color: white;
        font-size: 14px;
        cursor: pointer;
        margin-left: 12px;
        opacity: 0.7;
        transition: opacity 0.2s;
        padding: 0;
        align-self: flex-start;
    }

    @media (min-width: 480px) {
        .notification-close {
            font-size: 16px;
            margin-left: 15px;
        }
    }

    .notification-close:hover {
        opacity: 1;
    }

    .notification-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: rgba(255, 255, 255, 0.3);
    }

    .notification-progress-bar {
        height: 100%;
        background-color: white;
        width: 100%;
        transform-origin: left;
        transform: scaleX(1);
    }

    .notification-actions {
        display: flex;
        gap: 8px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    @media (min-width: 480px) {
        .notification-actions {
            gap: 10px;
            margin-top: 12px;
        }
    }

    .notification-btn {
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
        min-height: 32px;
    }

    @media (min-width: 480px) {
        .notification-btn {
            padding: 6px 12px;
            font-size: 0.85rem;
        }
    }

    .notification-btn-primary {
        background-color: white;
        color: var(--dark-color);
    }

    .notification-btn-secondary {
        background-color: transparent;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .notification-btn-primary:hover {
        background-color: rgba(255, 255, 255, 0.9);
    }

    .notification-btn-secondary:hover {
        border-color: rgba(255, 255, 255, 0.6);
    }

    /* Loading Overlay */
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .loading-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
        border: 4px solid rgba(254, 44, 85, 0.2);
        border-radius: 50%;
        border-top-color: var(--primary-color);
        animation: spin 1s linear infinite;
    }

    @media (min-width: 768px) {
        .loading-spinner {
            width: 60px;
            height: 60px;
            border-width: 5px;
        }
    }

    /* Features Section with responsive grid */
    .features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    @media (min-width: 600px) {
        .features {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }
    }

    .feature-card {
        background: white;
        border-radius: var(--border-radius);
        padding: 1.5rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        transition: var(--transition);
        text-align: center;
    }

    @media (min-width: 768px) {
        .feature-card {
            padding: 2rem;
        }
    }

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        background: var(--gradient);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.2rem;
        color: white;
        font-size: 1.5rem;
    }

    @media (min-width: 768px) {
        .feature-icon {
            width: 70px;
            height: 70px;
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }
    }

    .feature-card h3 {
        margin-bottom: 0.8rem;
        color: var(--dark-color);
    }

    @media (min-width: 768px) {
        .feature-card h3 {
            margin-bottom: 1rem;
        }
    }

    .feature-card p {
        color: #666;
        line-height: 1.7;
        font-size: 0.95rem;
    }

    @media (min-width: 768px) {
        .feature-card p {
            font-size: 1rem;
        }
    }

    /* Testimonials with responsive adjustments */
    .testimonials {
        background-color: #f9f9f9;
        padding: 3rem 1.5rem;
        margin: 3rem 0;
        border-radius: var(--border-radius);
    }

    @media (min-width: 768px) {
        .testimonials {
            padding: 4rem 2rem;
            margin: 4rem 0;
        }
    }

    .testimonial-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    @media (min-width: 768px) {
        .testimonial-grid {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
    }

    .testimonial-card {
        background: white;
        border-radius: var(--border-radius);
        padding: 1.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        position: relative;
    }

    @media (min-width: 768px) {
        .testimonial-card {
            padding: 2rem;
        }
    }

    .testimonial-card::before {
        content: '"';
        position: absolute;
        top: 0.8rem;
        left: 1.2rem;
        font-size: 4rem;
        color: rgba(254, 44, 85, 0.1);
        font-family: serif;
        line-height: 1;
    }

    @media (min-width: 768px) {
        .testimonial-card::before {
            top: 1rem;
            left: 1.5rem;
            font-size: 5rem;
        }
    }

    .testimonial-content {
        position: relative;
        z-index: 1;
        margin-bottom: 1.2rem;
        font-style: italic;
        color: #555;
        line-height: 1.6;
        font-size: 0.95rem;
    }

    @media (min-width: 768px) {
        .testimonial-content {
            margin-bottom: 1.5rem;
            font-size: 1rem;
            line-height: 1.7;
        }
    }

    .testimonial-author {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    @media (min-width: 768px) {
        .testimonial-author {
            gap: 1rem;
        }
    }

    .author-avatar {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        object-fit: cover;
    }

    @media (min-width: 768px) {
        .author-avatar {
            width: 50px;
            height: 50px;
        }
    }

    .author-info h4 {
        margin-bottom: 0.2rem;
        font-size: 1rem;
    }

    @media (min-width: 768px) {
        .author-info h4 {
            font-size: 1.1rem;
            margin-bottom: 0.3rem;
        }
    }

    .author-info p {
        color: #777;
        font-size: 0.85rem;
    }

    @media (min-width: 768px) {
        .author-info p {
            font-size: 0.9rem;
        }
    }

    /* CTA Section with responsive padding */
    .cta-section {
        background: var(--gradient);
        color: white;
        padding: 3rem 1.5rem;
        text-align: center;
        border-radius: var(--border-radius);
        margin: 3rem 0;
    }

    @media (min-width: 768px) {
        .cta-section {
            padding: 4rem 2rem;
            margin: 4rem 0;
        }
    }

    .cta-section h2 {
        color: white;
        margin-bottom: 1.2rem;
    }

    @media (min-width: 768px) {
        .cta-section h2 {
            margin-bottom: 1.5rem;
        }
    }

    .cta-section p {
        max-width: 700px;
        margin: 0 auto 1.5rem;
        opacity: 0.9;
        font-size: 1rem;
    }

    @media (min-width: 768px) {
        .cta-section p {
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    @media (min-width: 480px) {
        .cta-buttons {
            flex-direction: row;
            gap: 1.5rem;
        }
    }

    /* Footer with responsive grid */
    .footer {
        background-color: var(--dark-color);
        color: white;
        padding: 3rem 1.5rem 1.5rem;
    }

    @media (min-width: 768px) {
        .footer {
            padding: 4rem 2rem 2rem;
        }
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    @media (min-width: 600px) {
        .footer-content {
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
        }
    }

    .footer-logo {
        display: flex;
        align-items: center;
        margin-bottom: 1.2rem;
    }

    @media (min-width: 768px) {
        .footer-logo {
            margin-bottom: 1.5rem;
        }
    }

    .footer-logo img {
        height: 35px;
        margin-right: 10px;
    }

    @media (min-width: 768px) {
        .footer-logo img {
            height: 40px;
            margin-right: 12px;
        }
    }

    .footer-about p {
        color: #bbb;
        line-height: 1.6;
        margin-bottom: 1.2rem;
        font-size: 0.95rem;
    }

    @media (min-width: 768px) {
        .footer-about p {
            line-height: 1.7;
            margin-bottom: 1.5rem;
            font-size: 1rem;
        }
    }

    .social-links {
        display: flex;
        gap: 0.8rem;
    }

    @media (min-width: 768px) {
        .social-links {
            gap: 1rem;
        }
    }

    .social-link {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: var(--transition);
        font-size: 0.9rem;
    }

    @media (min-width: 768px) {
        .social-link {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }
    }

    .social-link:hover {
        background-color: var(--primary-color);
        transform: translateY(-3px);
    }

    .footer-links h3 {
        color: white;
        margin-bottom: 1.2rem;
        font-size: 1.1rem;
    }

    @media (min-width: 768px) {
        .footer-links h3 {
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
        }
    }

    .footer-links ul {
        list-style: none;
    }

    .footer-links li {
        margin-bottom: 0.6rem;
    }

    @media (min-width: 768px) {
        .footer-links li {
            margin-bottom: 0.8rem;
        }
    }

    .footer-links a {
        color: #bbb;
        text-decoration: none;
        transition: var(--transition);
        font-size: 0.95rem;
    }

    @media (min-width: 768px) {
        .footer-links a {
            font-size: 1rem;
        }
    }

    .footer-links a:hover {
        color: white;
        padding-left: 5px;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: #999;
        font-size: 0.85rem;
    }

    @media (min-width: 768px) {
        .footer-bottom {
            padding-top: 2rem;
            margin-top: 2rem;
            font-size: 0.9rem;
        }
    }

    .footer-bottom a {
        color: #bbb;
        text-decoration: none;
    }

    .footer-bottom a:hover {
        color: white;
        text-decoration: underline;
    }

    /* Mobile menu toggle animation */
    @keyframes slideIn {
        from { right: -280px; }
        to { right: 0; }
    }

    @keyframes slideOut {
        from { right: 0; }
        to { right: -280px; }
    }

    /* Print styles */
    @media print {
        .navbar, .mobile-menu-btn, .footer {
            display: none !important;
        }
        
        body {
            background-color: white;
            padding: 0;
        }
        
        .tool-container {
            box-shadow: none;
            border: 1px solid #ddd;
            margin-top: 0;
            page-break-inside: avoid;
        }
        
        .result-container {
            page-break-before: always;
        }
    }