/* ===================================
   Tools Flash - Modern CSS Styles
   =================================== */

/* ===================================
   1. CSS Variables & Reset
   =================================== */

:root {
    /* Primary Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --secondary-dark: #db2777;
    
    /* Accent Colors */
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --accent-yellow: #fbbf24;
    
    /* Neutral Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   2. Navigation Bar
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    cursor: pointer;
}

.logo i {
    font-size: 1.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    list-style: none;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-menu a i {
    font-size: 1rem;
    width: 20px;
}

/* Search Toggle Button */
.search-toggle {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ===================================
   3. Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
    z-index: 0;
}

.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-orange));
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    top: 30%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 20px) rotate(270deg); }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

/* Desktop: Show desktop illustration, hide mobile one */
@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-image-mobile {
        display: none !important; /* Hide mobile illustration on desktop */
    }
    
    .hero-image-desktop {
        display: block; /* Show desktop illustration */
    }
}

/* Mobile: Hide desktop illustration, show mobile one */
@media (max-width: 991px) {
    .hero-image-desktop {
        display: none !important; /* Hide desktop illustration on mobile */
    }
    
    .hero-image-mobile {
        display: block; /* Show mobile illustration */
        order: 4; /* Position after subtitle */
        margin: 1.5rem 0;
    }
}

.hero-content {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trust-badges {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.badge i {
    color: var(--primary-color);
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 20s linear infinite;
    box-shadow: var(--shadow-xl);
}

.hero-illustration i {
    font-size: 12rem;
    color: white;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===================================
   4. Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

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

/* ===================================
   5. Section Styles
   =================================== */

section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===================================
   6. Features Section
   =================================== */

.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   7. Categories Section
   =================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 2.5rem;
    color: white;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* ===================================
   8. Popular Tools Section
   =================================== */

.popular-tools {
    background: var(--bg-light);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.tool-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon i {
    font-size: 1.75rem;
    color: white;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.tool-description {
    color: var(--text-secondary);
    flex-grow: 1;
}

/* ===================================
   9. How It Works Section
   =================================== */

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: var(--spacing-lg) auto var(--spacing-md);
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    flex: 0 0 auto;
    font-size: 2rem;
    color: var(--primary-color);
}

/* ===================================
   10. Testimonials Section
   =================================== */

.testimonials {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-rating i {
    color: var(--accent-yellow);
    font-size: 1.125rem;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-name {
    font-weight: 700;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===================================
   12. Newsletter Section
   =================================== */

.newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2xl);
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.newsletter-description {
    font-size: 1.125rem;
    opacity: 0.9;
}

.newsletter-form {
    flex: 1;
}

.form-group {
    position: relative;
    display: flex;
    gap: var(--spacing-sm);
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.form-group input {
    flex: 1;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    outline: none;
}

.form-note {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===================================
   13. Final CTA Section
   =================================== */

.final-cta {
    background: var(--bg-light);
    text-align: center;
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.final-cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.trust-item i {
    color: var(--accent-green);
    font-size: 1.25rem;
}

/* ===================================
   14. Footer
   =================================== */

.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.footer-logo i {
    color: var(--primary-light);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.9rem;
    min-width: 16px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   15. Scroll to Top Button
   =================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   16. Search Modal
   =================================== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
}

.search-modal.active {
    display: flex;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-top: 5rem;
    animation: slideDown 0.3s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.search-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 1;
}

.search-modal-close:hover {
    background: var(--primary-color);
    color: white;
}

.search-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.search-modal-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.search-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.search-modal-header p {
    color: var(--text-secondary);
}

.search-input-wrapper {
    position: relative;
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.search-input-wrapper i {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-input-wrapper input:focus {
    border-color: var(--primary-color);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0 2rem 2rem;
}

.search-category {
    margin-bottom: 1.5rem;
}

.search-category h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.search-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.search-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.search-item i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.search-item-title {
    font-weight: 600;
    font-size: 0.9375rem;
}

.search-item-desc {
    font-size: 0.8125rem;
    opacity: 0.8;
}

.search-item.hidden {
    display: none;
}

.search-item.coming-soon {
    opacity: 0.7;
    cursor: pointer;
}

.search-item.coming-soon:hover {
    background: #f59e0b;
    color: white;
    opacity: 1;
}

.search-category h3 i {
    margin-right: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ===================================
   17. Responsive Design
   =================================== */

/* ===================================
   Page-Specific Styles
   =================================== */

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-title i {
    font-size: 2.5rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Tools Section */
.tools-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.tools-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.tool-card-large {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tool-card-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-badge.trending {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.tool-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tool-icon-large i {
    font-size: 2.5rem;
    color: white;
}

.tool-card-large .tool-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tool-card-large .tool-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.feature-tag i {
    font-size: 0.75rem;
    color: var(--accent-green);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: white;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-group-contact {
    margin-bottom: 1.5rem;
}

.form-group-contact label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group-contact input,
.form-group-contact textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group-contact input:focus,
.form-group-contact textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group-contact textarea {
    resize: vertical;
    min-height: 150px;
}

/* About Page */
.about-section {
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.about-stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Category Pages */
.category-intro {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.category-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* Active Navigation Link */
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 100%;
}

/* ===================================
   18. Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-illustration {
        width: 300px;
        height: 300px;
    }
    
    .hero-illustration i {
        font-size: 8rem;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: var(--spacing-xl);
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        margin-top: 0.5rem;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        transition: all 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
    
    .dropdown-toggle i {
        transition: var(--transition-fast);
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .search-modal-content {
        margin-top: 2rem;
        max-height: 90vh;
        border-radius: 1rem;
        margin: 1rem;
    }
    
    .search-input-wrapper,
    .search-results {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .search-modal-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .categories-grid,
    .tools-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .final-cta-buttons .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column:first-child {
        grid-column: auto;
    }
    
    /* Enhanced Mobile Tablet Styles */
    .container {
        padding: 0 1.25rem;
    }
    
    /* Better spacing */
    .section {
        padding: 3.5rem 0;
    }
    
    /* Tool cards */
    .tool-card-large {
        padding: 1.75rem;
    }
    
    .tools-grid-large {
        gap: 1.5rem;
    }
    
    /* Categories */
    .category-card {
        padding: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-content {
        padding: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.75rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Feature tags */
    .feature-tag {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Search improvements */
    .search-item i {
        font-size: 1.25rem;
    }
    
    /* Page header */
    .page-header {
        padding: 6.5rem 0 3.5rem;
    }
    
    /* CTA section */
    .final-cta {
        padding: 3rem 0;
    }
    
    .final-cta-title {
        font-size: 2rem;
    }
    
    .final-cta-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .trust-badges {
        flex-wrap: wrap;
    }
    
    .hero-illustration {
        width: 200px;
        height: 200px;
    }
    
    .hero-illustration i {
        font-size: 5rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .final-cta-title {
        font-size: 1.75rem;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Enhanced Mobile Styles */
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .category-card,
    .tool-card,
    .feature-card {
        padding: 1.25rem;
    }
    
    .category-icon,
    .tool-icon,
    .feature-icon {
        font-size: 2rem;
    }
    
    .search-modal-content {
        margin: 1rem;
        padding: 0;
        border-radius: 1rem;
        max-height: 85vh;
    }
    
    .search-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .search-input-wrapper input {
        font-size: 0.95rem;
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .search-item {
        padding: 0.75rem;
    }
    
    .search-item-title {
        font-size: 0.875rem;
    }
    
    .search-item-desc {
        font-size: 0.75rem;
    }
    
    /* Fix overflow issues */
    body {
        overflow-x: hidden;
    }
    
    /* Better touch targets */
    a, button, .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Additional Mobile Enhancements */
@media (max-width: 640px) {
    /* Typography scaling */
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    /* Spacing adjustments */
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 5rem 0 3rem;
    }
    
    /* Cards grid improvements */
    .tools-grid-large,
    .categories-grid,
    .features-grid {
        gap: 1rem;
    }
    
    /* Tool card large improvements */
    .tool-card-large {
        padding: 1.5rem;
    }
    
    .tool-icon-large i {
        font-size: 2rem;
    }
    
    .tool-title {
        font-size: 1.125rem;
    }
    
    .tool-description {
        font-size: 0.875rem;
    }
    
    /* Footer improvements */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-logo {
        font-size: 1.25rem;
    }
    
    /* Page header improvements */
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-title i {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* Navigation improvements */
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.125rem;
    }
    
    .logo i {
        font-size: 1.25rem;
    }
    
    /* Better text wrapping */
    .hero-title,
    .section-title,
    .page-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ===================================
   17. Utility Classes
   =================================== */

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ===================================
   18. Mobile-First Touch Optimizations
   =================================== */

/* Prevent text selection on buttons and interactive elements */
button, .btn, a.btn {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    user-select: none;
    -webkit-user-select: none;
}

/* Smooth scrolling on iOS */
body {
    -webkit-overflow-scrolling: touch;
}

/* Better touch targets - minimum 44x44px */
@media (max-width: 768px) {
    button, .btn, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Navigation links */
    .nav-menu a {
        padding: 1rem;
        display: block;
    }
    
    /* Better tap targets for icons */
    .mobile-menu-toggle,
    .search-toggle {
        padding: 0.75rem;
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Form inputs */
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for touch */
    .category-card,
    .tool-card,
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Landscape phone optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .page-header {
        padding: 5rem 0 2rem;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
    }
    
    .search-modal-content {
        max-height: 80vh;
    }
}

/* Very small screens (< 360px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .container {
        padding: 0 0.875rem;
    }
    
    .category-card,
    .tool-card,
    .feature-card {
        padding: 1rem;
    }
}

/* Tablet portrait optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

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

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .navbar,
    .footer {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* ===================================
   19. COMPREHENSIVE MOBILE RESPONSIVE FIX
   =================================== */

/* Mobile First - Base styles for all mobile devices */
@media (max-width: 991px) {
    /* Navbar mobile fix */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
        z-index: 1001;
    }
    
    /* Mobile menu */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: 2rem 1rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        width: 100%;
        font-size: 1.05rem;
    }
    
    /* Dropdown mobile fix */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 0;
        padding: 0.5rem 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 600px;
        opacity: 1;
    }
    
    .dropdown-menu li {
        border: none;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .dropdown-toggle i.fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-toggle i.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }
    
    /* Hide desktop elements */
    .nav-actions .btn-outline {
        display: none;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 5rem 0 3rem;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    
    .hero-content {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Trust badges - HORIZONTAL on mobile */
    .trust-badges {
        display: flex;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-bottom: 1.25rem;
        order: 1;
    }
    
    .trust-badges .badge {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.5rem 1rem;
        background: white;
        border-radius: 2rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        font-size: 0.875rem;
        font-weight: 500;
        white-space: nowrap;
    }
    
    /* Hero title and subtitle order */
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        order: 2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto 1.5rem;
        max-width: 100%;
        order: 3;
    }
    
    /* Hero illustration - BELOW text on mobile */
    .hero-image {
        order: 4;
        margin: 1.5rem 0;
    }
    
    .hero-illustration {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    /* CTA buttons */
    .hero-cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        order: 5;
        width: 100%;
    }
    
    .hero-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Hero stats */
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        order: 6;
        margin-top: 2rem;
    }
    
    /* Sections mobile */
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Grids mobile - single column */
    .features-grid,
    .categories-grid,
    .tools-grid,
    .tools-grid-large,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    
    /* Cards mobile */
    .category-card,
    .tool-card,
    .tool-card-large,
    .feature-card,
    .testimonial-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .category-icon,
    .tool-icon,
    .tool-icon-large,
    .feature-icon {
        margin: 0 auto 1rem;
        display: block;
    }
    
    /* How it works section mobile */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .step-card {
        text-align: center;
    }
    
    /* Newsletter mobile */
    .newsletter {
        padding: 2.5rem 0;
    }
    
    .newsletter-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .newsletter-form input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links-bottom {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    /* CTA section mobile */
    .final-cta {
        padding: 3rem 0;
        text-align: center;
    }
    
    .final-cta-content {
        text-align: center;
    }
    
    .final-cta-title {
        font-size: 1.75rem;
    }
    
    .final-cta-subtitle {
        font-size: 1rem;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .final-cta-buttons .btn {
        width: 100%;
    }
    
    /* Trust indicators mobile */
    .trust-badges,
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Search modal mobile */
    .search-modal-content {
        width: calc(100% - 2rem);
        margin: 1rem;
        max-height: 85vh;
        border-radius: 1rem;
    }
    
    .search-modal-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .search-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .search-input-wrapper input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .search-results {
        padding: 0.5rem;
    }
    
    .search-category {
        padding: 1rem 0.75rem 0.5rem;
    }
    
    .search-item {
        padding: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    /* Page header mobile */
    .page-header {
        padding: 5.5rem 0 3rem;
        text-align: center;
    }
    
    .page-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* Buttons mobile - full width */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
    }
    
    /* Form elements */
    input,
    select,
    textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Contact page mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    /* About page mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Popular page mobile */
    .tools-showcase {
        grid-template-columns: 1fr;
    }
    
    /* Container padding mobile */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .features-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .tools-grid-large {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.65rem;
        line-height: 1.25;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-icon i,
    .tool-icon i,
    .feature-icon i {
        font-size: 2rem;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }
    
    .container {
        padding: 0 0.875rem;
    }
    
    .category-card,
    .tool-card,
    .tool-card-large {
        padding: 1.25rem;
    }
    
    .hero-illustration {
        width: 220px;
        height: 220px;
    }
    
    .search-modal-content {
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }
}

/* Extra Small Mobile (< 360px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 1.125rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    button,
    .btn,
    a,
    input,
    select,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .tool-card:hover,
    .category-card:hover,
    .feature-card:hover {
        transform: none;
    }
    
    /* Tap highlight color */
    button,
    .btn,
    a {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    }
}

/* Landscape Phone Optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .search-modal-content {
        max-height: 75vh;
    }
    
    .section {
        padding: 2.5rem 0;
    }
}

/* Prevent horizontal scroll - IMPORTANT */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive iframes */
iframe {
    max-width: 100%;
}

/* Fix for iOS notch devices */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .navbar,
    .footer {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Smooth scrolling for mobile */
html {
    -webkit-overflow-scrolling: touch;
}

/* Prevent zoom on input focus - iOS Safari */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .mobile-menu-toggle,
    .search-toggle,
    .btn,
    .final-cta {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
    }
}

