* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --primary-dark: #16423c;
    --primary-medium: #6a9c89;
    --primary-light: #c4dad2;
    --background-light: #e9efec;
    --primary-text: white;
    
    /* UI Elements */
    --light-bg: rgba(255, 255, 255, 0.4);
    --light-text: #1e293b;
    --light-accent: #6a9c89;
    --light-menu-bg: rgba(255, 255, 255, 0.95);
    --dark-bg: rgba(15, 23, 42, 0.4);
    --dark-text: #f1f5f9;
    --dark-accent: #6a9c89;
    --dark-menu-bg: rgba(15, 23, 42, 0.95);
    --input-disable-bg: #6b6868d2;
    
    /* Category Page Variables */
    --primary-color: #6a9c89;
    --primary-color-rgb: 106, 156, 137;
    --bg-color: rgba(255, 255, 255, 0.1);
    --text-color: #f1f5f9;
    --border-color: rgba(255, 255, 255, 0.2);
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #16423c, #3b7564);
    --secondary-gradient: linear-gradient(135deg, #6a9c89, #4a7d6c);
    --tool-gradient: linear-gradient(135deg, #16423c, #3b7564);
    --section-header-gradient: linear-gradient(to right, #8bb8a8, #6a9c89);
    --hero-heading-gradient: linear-gradient(to right, #c4dad2, #8bb8a8, #6a9c89);
    
    /* Cards & Components */
    --tool-card-bg: rgba(15, 23, 42, 0.6);
    --tool-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --home-tool-card-bg: rgba(255, 255, 255, 0.05);
    --home-tool-card-border: 1px solid rgba(255, 255, 255, 0.1);
    --popular-card-bg: rgba(255, 255, 255, 0.05);
    --popular-card-border: 1px solid rgba(255, 255, 255, 0.1);
    --popular-tools-bg: var(--primary-gradient);
    --popular-tools-border: 1px solid rgba(255, 255, 255, 0.1);
    --benefit-card-bg: rgba(255, 255, 255, 0.08);
    --benefit-card-border: 1px solid rgba(255, 255, 255, 0.1);
    --faq-item-bg: rgba(255, 255, 255, 0.05);
    --faq-item-border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Backgrounds */
    --body-bg-gradient: radial-gradient(circle at top right, #0f172a, #1e293b);
    --benefits-bg: rgba(15, 23, 42, 0.3);
    --benefits-border: 1px solid rgba(255, 255, 255, 0.1);
    --footer-bg: rgba(15, 23, 42, 0.8);
    --background-dark: rgba(255, 255, 255, 0.08);
    
    /* Form Elements */
    --search-bar-bg: rgba(255, 255, 255, 0.15);
    --search-icon-color: #c4dad2;
    --contact-input-bg: rgba(255, 255, 255, 0.1);
    --newsletter-input-text: white;
    
    /* Text & Icons */
    --footer-heading-color: #8bb8a8;
    --typewriter-color: var(--footer-heading-color);
    --popular-icon-color: white;
    --toggle-icon-color: #16423c;
    
    /* Borders & Dividers */
    --copyright-border: 1px solid rgba(255, 255, 255, 0.1);
    --dropdown-divider: rgba(255, 255, 255, 0.1);
    
    /* Interactive Elements */
    --mobile-dropdown-hover: rgba(255, 255, 255, 0.1);
    --social-icon-bg: rgba(255, 255, 255, 0.1);
    --site-title-gradient: linear-gradient(to right, #c4dad2, #8bb8a8);
      
    --tooltip-bg-color: #1e1e1e;      /* Soft dark gray */
  --tooltip-text-color: #f1f1f1;    /* Slightly off-white for comfort */
  --tooltip-border-color: #333333; /* Optional: dim border */
  --tooltip-shadow-color: rgba(0, 0, 0, 0.4);
}

/* Light Mode Overrides */
.light-mode {
    /* Primary colors */
    --primary-dark: #3b7564;
    --primary-medium: #16423c;
    --primary-light: #6a9c89;

    /* Text & Backgrounds */
    --dark-text: var(--light-text);
    --page-bg: #e9efec;
    --text-color: #1e293b;
    --heading-color: #16423c;
    --card-bg: rgba(255, 255, 255, 0.3);
    --menu-bg: rgba(255, 255, 255, 0.95);
    --background-dark: var(--page-bg);
    --dark-bg: var(--card-bg);
    --dark-menu-bg: var(--menu-bg);
    --input-disable-bg: #f3f3f3;
    --primary-text: #16423c;
    
    /* Category Page Variables - Light Mode */
    --primary-color: #16423c;
    --primary-color-rgb: 22, 66, 60;
    --bg-color: rgba(255, 255, 255, 0.8);
    --text-color: #1e293b;
    --border-color: rgba(0, 0, 0, 0.1);
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #3b7564, #16423c);
    --secondary-gradient: linear-gradient(135deg, #8bc3a5, #6a9c89);
    --tool-gradient: linear-gradient(135deg, #a0d4b8, #8bc3a5);
    --section-header-gradient: linear-gradient(to right, #16423c, #3b7564);
    --hero-heading-gradient: linear-gradient(to right, #16423c, #3b7564);
    
    /* Cards & Components */
    --tool-card-bg: var(--card-bg);
    --tool-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --home-tool-card-bg: rgba(255, 255, 255, 0.6);
    --home-tool-card-border: 1px solid rgba(0, 0, 0, 0.05);
    --popular-card-bg: rgba(255, 255, 255, 0.6);
    --popular-card-border: 1px solid rgba(0, 0, 0, 0.05);
    --popular-tools-bg: linear-gradient(135deg, rgba(22, 66, 60, 0.05), rgba(255, 255, 255, 0.4));
    --popular-tools-border: 1px solid rgba(255, 255, 255, 0.2);
    --benefit-card-bg: rgba(255, 255, 255, 0.6);
    --benefit-card-border: 1px solid rgba(0, 0, 0, 0.05);
    --faq-item-bg: rgba(255, 255, 255, 0.6);
    --faq-item-border: 1px solid rgba(0, 0, 0, 0.05);
    
    /* Backgrounds */
    --body-bg-gradient: radial-gradient(circle at top right, #f0f9ff, #e0f2fe);
    --benefits-bg: rgba(255, 255, 255, 0.4);
    --benefits-border: 1px solid rgba(255, 255, 255, 0.2);
    --footer-bg: rgba(241, 245, 249, 0.8);
    
    /* Form Elements */
    --search-bar-bg: rgba(255, 255, 255, 0.8);
    --search-icon-color: #16423c;
    --contact-input-bg: rgba(255, 255, 255, 0.8);
    --newsletter-input-text: var(--light-text);
    
    /* Text & Icons */
    --footer-heading-color: #16423c;
    --typewriter-color: var(--footer-heading-color);
    --popular-icon-color: #16423c;
    --toggle-icon-color: #6a9c89;
    
    /* Borders & Dividers */
    --copyright-border: 1px solid rgba(0, 0, 0, 0.1);
    --dropdown-divider: rgba(0, 0, 0, 0.1);
    
    /* Interactive Elements */
    --mobile-dropdown-hover: rgba(22, 66, 60, 0.1);
    --social-icon-bg: rgba(22, 66, 60, 0.1);
    --site-title-gradient: linear-gradient(to right, #16423c, #3b7564);

    --tooltip-bg-color: #ffffff;     /* Pure white or #fefefe for softer */
  --tooltip-text-color: #1a1a1a;   /* Deep gray for contrast */
  --tooltip-border-color: #dddddd; /* Optional: subtle border */
  --tooltip-shadow-color: rgba(0, 0, 0, 0.08);
}
/* main.css */
body {
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    background: var(--body-bg-gradient);
    color: var(--dark-text);
    transition: var(--transition);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 100;
    transition: var(--transition);
}

/* Consistent Width for Navbar and Hero */
.navbar, .hero-content {
    max-width: 1400px;
    width: 90%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(22, 66, 60, 0.3);
}

.logo i {
    color: white;
    font-size: 1.4rem;
}

.logo-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 8px;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--site-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-text);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #8bb8a8;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.mode-toggle {
    width: 50px;
    height: 28px;
    background: var(--primary-gradient);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 3px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(22, 66, 60, 0.3);
}

.toggle-circle {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-circle i {
    font-size: 0.75rem;
    color: var(--toggle-icon-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger i {
    font-size: 1.5rem;
    color: var(--dark-text);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Changed from left:0 */
    width: 300px; /* Fixed width for sidebar */
    height: 100%;
    background: var(--dark-menu-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: transform 0.3s ease;
    transform: translateX(0);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    transform: translateX(-300px); /* Slide in from right */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-menu {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-menu i {
    font-size: 1.5rem;
    color: var(--dark-text);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-links a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-text);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    transition: var(--transition);
}

.mobile-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.light-mode .mobile-links a:hover {
    background: var(--mobile-dropdown-hover);
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    backdrop-filter: blur(10px);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color:var(--footer-heading-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-links a i {
    color: #6a9c89;
}

.footer-links a:hover {
    color: #8bb8a8;
}

.copyright {
    text-align: center;
    padding: 3rem 0 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
    max-width: 1400px;
    margin: 0 auto;
    border-top: var(--copyright-border);
    margin-top: 3rem;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top i {
    font-size: 1.5rem;
}

/* Footer enhancements */
.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--social-icon-bg);
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-medium);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    margin-top: 1.5rem;
}

.contact-input {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: none;
    background: var(--contact-input-bg);
    color: white;
}

.contact-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 66, 60, 0.4);
}

.language-switcher {
    margin-top: 1.5rem;
    position: relative;
}

.language-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: var(--contact-input-bg);
    color: var(--dark-text);
    border: none;
    appearance: none;
    cursor: pointer;
}

.language-switcher i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Animation classes */
.aos-fade-up {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.6s ease;
}

.aos-fade-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.aos-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.aos-slide-up.animate {
    opacity: 1;
    transform: translateX(0);
}

.aos-fade-in {
    opacity: 0;
    transition: all 0.6s ease;
}

.aos-fade-in.animate {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .typewriter {
        font-size: 1.4rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .subscribe-btn {
        width: 100%;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* New dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-text);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.dropdown-toggle:hover {
    color: #8bb8a8;
}

.dropdown-toggle:hover::after {
    width: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--dark-menu-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.7rem 1.5rem !important;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 1rem;
}

.dropdown-item:hover {
    background: rgba(106, 156, 137, 0.15);
    color: #8bb8a8;
    padding-left: 1.7rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--dropdown-divider);
    margin: 0.5rem 0;
}

/* Mobile dropdown styles */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition);
}

.mobile-dropdown-toggle:hover {
    background: var(--mobile-dropdown-hover);
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1.5rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 500px;
}

.mobile-dropdown-item {
    display: block;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mobile-dropdown-item:hover {
    background: rgba(106, 156, 137, 0.15);
    color: #8bb8a8;
    padding-left: 1.3rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .dropdown-menu {
        display: none;
    }
}

/* Add this to your existing CSS */
.mobile-menu {
    overflow-y: auto;
}

.mobile-menu-header {
    position: sticky;
    top: 0;
    background: var(--dark-menu-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10;
    padding: 1.5rem;
}

.mobile-links {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 0 1.5rem 2rem;
}

@media (max-width: 992px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu.active {
        transform: translateX(-100%);
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 90%;
        right: -90%;
    }
    
    .mobile-menu.active {
        transform: translateX(-90%);
    }
}

/* Responsive styles */
@media (max-width: 1100px) {
    .nav-links {
        gap: 1.5rem;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    .cta-button {
        margin: 1rem 0 0 0;
    }
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta-buttons .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
     .search-icon {
        left: 1rem; /* Adjust icon position */
        top:22% !important;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1.5rem;
    }

    .hero {
        padding-top: 120px;
    }
    
    .hero-container {
        flex-direction: column-reverse; /* Reverse order */
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2.3rem;
    }

    .tool-card {
        padding: 2rem 1.5rem;
    }

    .benefits, .popular-tools {
        padding: 3rem 1.5rem;
    }
    
    .hero-image {
        max-width: 90%;
    }
    .search-container {
        width: 100%;
    }
    
    .search-bar {
        padding-left: 3rem; /* Ensure icon stays inside */
    }
    
    .search-icon {
        left: 1rem; /* Adjust icon position */
        top:22% !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 90px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .search-bar {
        padding: 1rem 1.2rem;
        padding-left: 3rem;
        font-size: 1rem;
    }

    .search-icon {
        left: 1.2rem;
    }

    .site-title {
        font-size: 1.4rem;
        background-clip: text;
    }

    .logo {
        width: 36px;
        height: 36px;
    }
    
    .logo-image {
        width: 85%;
        height: 85%;
        object-fit: contain;
        border-radius: 6px;
    }
}


/* --- ABOUT PAGE STYLES --- */

.about-hero-section {
    padding: 80px 0;
    text-align: center;
}

.about-hero-section .section-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.about-hero-section .section-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.about-hero-image {
    max-width: 700px;
    height: auto;
    margin: 40px auto;
    display: block;
    border-radius: 8px;
    box-shadow: var(--tool-card-shadow);
    transition: transform 0.3s ease;
}
.about-hero-image:hover {
    transform: translateY(-5px);
}

.about-hero-section .lead {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 20px auto 0;
}

/* Sections for Our Mission, Our Story, Why Choose Us */
.our-mission-section,
.our-story-section,
.why-choose-us-section {
    padding: 60px 0;
}

.our-mission-section.bg-light,
.why-choose-us-section.bg-light {
    background-color: var(--tool-card-bg);
}

/* Generic .row and .col-md-X (Bootstrap-like grid system) */
.row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 25px;
}

.col-md-6,
.col-md-4 {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Image styles within sections */
.our-mission-section img,
.our-story-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--tool-card-shadow);
}

.our-mission-section .text-left {
    text-align: left;
}

.our-mission-section h2 {
    color: var(--primary-dark);
}

/* Features Grid (Why Choose Us) */
.features-grid {
    margin-top: 40px;
    justify-content: center;
}

.feature-card {
    background-color: var(--tool-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--tool-card-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Dark mode specific for feature-card border to ensure visibility */
.dark-mode .feature-card {
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tool-card-shadow);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-medium);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Call to Action Section */
.call-to-action-section {
    padding: 70px 0;
    text-align: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px;
    margin: 50px auto;
    max-width: 1200px;
    box-shadow: var(--tool-card-shadow);
}

.call-to-action-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.call-to-action-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-size: 1.15rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary.btn-lg {
    padding: 15px 35px;
    font-size: 1.2rem;
    border-radius: 50px;
    background-color: var(--primary-medium);
    color: var(--dark-text);
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary.btn-lg:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-primary.btn-lg i {
    margin-left: 10px;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.img-fluid { max-width: 100%; height: auto; display: block; }
.rounded { border-radius: 8px !important; }
/* --- END ABOUT PAGE STYLES --- */


/* Contact Page Specific Styles */
.contact-hero-section {
    padding: 80px 20px;
    background: var(--secondary-gradient);
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 40px;
}

.contact-hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.contact-form-section,
.contact-info-section {
    background-color: var(--tool-card-bg);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--tool-card-shadow);
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    color: var(--dark-text);
}

.contact-form-section h2,
.contact-info-section h2,
.contact-map-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--dark-text);
    text-align: center;
    font-weight: 600;
}

/* Contact Form Styles */
.contact-form .contact-form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: var(--benefit-card-border);
    border-radius: 8px;
    background-color: var(--background-dark);
    color: var(--dark-text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-medium);
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 156, 137, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 25px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-form button i {
    margin-left: 10px;
    font-size: 1rem;
}

/* Contact Info Styles */
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.contact-info-item i {
    font-size: 1.8rem;
    color: var(--primary-medium);
    min-width: 35px;
    text-align: center;
}

.contact-info-item h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--primary-light);
}

.contact-info-item p {
    font-size: 1rem;
    color: var(--dark-text);
}

.contact-info-item a {
    color: var(--primary-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Contact Map Section */
.contact-map-section {
    background-color: var(--tool-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--tool-card-shadow);
    margin-top: 40px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-form-section,
    .contact-info-section {
        width: 100%;
        max-width: 500px;
    }

    .contact-hero-section h1 {
        font-size: 2.8rem;
    }

    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .contact-hero-section h1 {
        font-size: 2.2rem;
    }

    .contact-hero-section p {
        font-size: 1rem;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 25px;
    }
}


/* Policy Pages (Privacy Policy, Terms of Use) Specific Styles */

.policy-page-main {
    padding-bottom: 60px; /* Add some space at the bottom for consistency */
}

.policy-hero-section {
    padding: 80px 20px;
    background: var(--secondary-gradient); /* Use a different gradient for variety */
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 40px;
}

.policy-hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.policy-hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.policy-content-section {
    padding: 20px 0;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--tool-card-bg); /* Use existing card background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--tool-card-shadow); /* Use existing shadow */
    color: var(--dark-text); /* Ensure text is visible */
    line-height: 1.7;
}

.policy-last-updated {
    text-align: right;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 30px;
    color: var(--dark-text); /* Ensure date is visible */
}

.policy-container h2 {
    font-size: 2rem;
    color: var(--primary-light); /* Highlight main headings */
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.policy-container h2:first-of-type {
    margin-top: 0; /* No top margin for the first h2 */
}

.policy-container h3 {
    font-size: 1.5rem;
    color: var(--primary-medium); /* Sub-headings */
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 500;
}

.policy-container p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.policy-container ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--dark-text); /* Ensure list items are visible */
}

.policy-container ul li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.policy-container a {
    color: var(--primary-medium);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.policy-container a:hover {
    color: var(--primary-light);
}

/* Responsive adjustments for policy pages */
@media (max-width: 768px) {
    .policy-hero-section h1 {
        font-size: 2.8rem;
    }

    .policy-hero-section p {
        font-size: 1.1rem;
    }

    .policy-container {
        padding: 30px 20px;
        margin: 0 15px; /* Add some side margin */
    }

    .policy-container h2 {
        font-size: 1.8rem;
    }

    .policy-container h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .policy-hero-section h1 {
        font-size: 2.2rem;
    }

    .policy-hero-section p {
        font-size: 1rem;
    }

    .policy-container {
        padding: 20px 15px;
    }

    .policy-container ul {
        margin-left: 20px;
    }
}

/* Custom Confirmation Modal Styles */
.modal-overlay {
    display: flex; /* Use flexbox for easy centering */
    justify-content: center;
    align-items: center;
    position: fixed; /* Stay in place even when scrolling */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Optional: Frosted glass effect */
}

.modal-content {
    background-color: var(--benefits-bg);
    margin: auto; /* Centered automatically by flexbox */
    padding: 25px;
    border: var(--benefit-card-border);
    border-radius: 12px; /* Rounded corners */
    width: 90%; /* Responsive width */
    max-width: 500px; /* Max width for desktop */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-out; /* Simple fade-in animation */
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-medium);
    font-size: 1.5em;
}

.close-button {
    color: var(--dark-text);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

.modal-body {
    padding: 10px 0;
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
}

.modal-body p {
    margin: 0; /* Remove default paragraph margin */
    color:var(--dark-text);
}

.modal-footer {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px; /* Space between buttons */
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

/* Base button styles (ensure these are consistent with your existing btn classes) */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--secondary-gradient);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Responsive adjustments for modal */
@media (max-width: 600px) {
    .modal-content {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 1.3em;
    }

    .modal-body {
        font-size: 1em;
    }

    .modal-footer {
        flex-direction: column-reverse; /* Stack buttons on small screens */
        gap: 8px;
    }

    .btn {
        width: 100%; /* Full width buttons when stacked */
    }
}

/* Toggle: default (light mode) */
.mode-toggle .toggle-circle {
    left: 3px;
    /* ...existing styles... */
}

/* Toggle: dark mode (knob moves right, icon changes color) */
.mode-toggle.dark .toggle-circle {
    transform: translateX(22px); /* Adjust this value if needed for your toggle width */
}

.mode-toggle .toggle-circle i.fa-solid.fa-sun {
    display: inline;
}
.mode-toggle .toggle-circle i.fa-solid.fa-moon {
    display: none;
}
.mode-toggle.dark .toggle-circle i.fa-solid.fa-sun {
    display: none;
}
.mode-toggle.dark .toggle-circle i.fa-solid.fa-moon {
    display: inline;
}

#global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-overlay {
  position: absolute;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  width: 100%;
  height: 100%;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007BFF; /* Change color to match theme */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10000;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tooltip popup */
.wc-tooltip-popup {
  position: fixed;
  z-index: 99999;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.95em;
  white-space: pre-line;
  min-width: 180px;
  max-width: 300px;
  word-wrap: break-word;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px var(--tooltip-shadow-color);
  border: 2px solid var(--tooltip-border-color);
  background-color: var(--tooltip-bg-color);
  color: var(--tooltip-text-color);

  
}

/* ===== FAVORITE HEART ICONS ===== */

/* Favorite button container */
.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 14px;
    color: #ccc;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments */
.dark-mode .favorite-btn {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    color: #666;
}

/* Hover state */
.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--primary-medium);
}

/* Favorited state (filled heart) */
.favorite-btn.favorited {
    color: var(--primary-medium);
    background: rgba(106, 156, 137, 0.1);
    border-color: var(--primary-medium);
}

.favorite-btn.favorited:hover {
    color: var(--primary-dark);
    background: rgba(106, 156, 137, 0.2);
}

/* Loading state */
.favorite-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.favorite-btn.loading i {
    animation: spin 1s linear infinite;
}

/* Animation for adding/removing favorites */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.favorite-btn.heart-beat {
    animation: heartBeat 0.6s ease-in-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .favorite-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        top: 8px;
        left: 8px;
    }
}

/* Ensure tool cards have relative positioning for absolute positioning of hearts */
.tool-card {
    position: relative;
}

.popular-card {
    position: relative;
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.user-menu-toggle:hover {
    background: var(--border-color);
}

.user-menu-toggle .fa-user,
.user-menu-toggle .fa-solid,
.user-menu-toggle .fa-regular {
    font-size: 24px;
    color: var(--text-primary);
}

.user-menu-toggle .fa-chevron-down {
    display: none;
}


.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--border-color);
}

.dropdown-item i {
    font-size: 14px;
    width: 16px;
}

/* Dropdown User Info Styles */
.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.dropdown-user-info i {
    font-size: 18px;
    color: var(--primary-color);
}

.dropdown-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

/* Mobile Auth Styles */
.mobile-user-section,
.mobile-auth-section {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.mobile-user-info i {
    font-size: 18px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--primary-color);
}

.mobile-link i {
    font-size: 16px;
    width: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) { 
    /* Hide user menu on mobile completely - sidebar handles all auth */
    .user-menu {
        display: none;
    }
}

/* CAPTCHA Modal Styles */
.captcha-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: var(--footer-bg) ;
    border: 1px solid var(--benefit-card-border);
    color: var(--dark-text);
    padding: 25px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
    z-index: 9999 !important;
   
}



/* Backdrop styling */
#captcha-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    z-index: 9998 !important;
    /* Ensure backdrop covers entire viewport */
    margin: 0 !important;
    padding: 0 !important;
}

.captcha-header {
    text-align: center;
    margin-bottom: 20px;
}

.captcha-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.captcha-header p {
    opacity: 0.8;
}






/* Captcha error styling */
.captcha-error {
    text-align: center;
    padding: 20px;
}

.captcha-error .text-danger {
    color: #dc3545 !important;
    font-weight: 500;
}

/* Responsive captcha adjustments */
@media (max-width: 480px) {
    .captcha-modal {
        width: 95% ;
        padding: 20px ;
        max-width: none ;
    }
    
    .captcha-header h3 {
        font-size: 1.3rem;
    }
    
    .captcha-header p {
        font-size: 0.9rem;
    }
}

/* Additional captcha positioning fixes */
@media (max-height: 600px) {
    .captcha-modal {
        max-height: 90vh !important;
        top: 45% !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* Ensure captcha works with different body styles */
body {
    /* Prevent body scroll when captcha is active */
    .captcha-active {
        overflow: hidden !important;
    }
}


/* Ensure reCAPTCHA widget is properly styled */
.g-recaptcha {
    display: flex !important;
    justify-content: center !important;
    margin: 20px 0 !important;
}


