/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Prevent zoom on input focus for mobile */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    overflow-x: hidden;
    max-width: 100vw;
    /* Improve touch scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    /* Prevent text selection on UI elements */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for content areas */
p, span, div[class*="content"], div[class*="description"], div[class*="text"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Touch-friendly form inputs */
input, textarea, select, button {
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Improve tap targets for mobile */
a, button, input, textarea, select {
    min-height: 44px;
    min-width: 44px;
}

/* Mobile-first responsive breakpoints */
/* Small phones: 320px - 480px */
/* Large phones: 481px - 768px */
/* Tablets: 769px - 1024px */
/* Desktop: 1025px+ */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.75rem;
}
    .container {
        padding: 0 1rem;
    }


@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.5rem;
    min-height: 3.5rem;
}

@media (min-width: 768px) {
    .header-content {
        height: 4rem;
        min-height: 4rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;                  
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 1rem;
    padding-left: -32px; 
}

.logo:hover {
    transform: scale(1.09);
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: block; 
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 650;
    color: #1f2937;
    line-height: 1;
}

.logo-accent {
    color: #2563eb;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-dropdown-btn:hover {
    color: #2563eb;
}

.dropdown-arrow {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    width: 16rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.dropdown-item {
    display: block;
    padding: 0.75rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: #eff6ff;
    color: #2563eb;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.tools-mega-menu {
    display: none; 
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1100px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    z-index: 1001; 
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

@media (min-width: 1024px) {
    .tools-mega-menu {
        padding: 2rem;
    }
}

.nav-dropdown.active .tools-mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .mega-menu-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}


.mega-menu-column .mega-menu-heading {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    padding-left: 0.5rem;
}

.mega-menu-section {
    margin-bottom: 1.5rem;
}

.mega-menu-section:last-child {
    margin-bottom: 0;
}

.mega-menu-section .mega-menu-heading {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    padding-left: 0.5rem;
}

.mega-menu-tool {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: background-color 0.2s ease;
    /* Reset mobile tap target override */
    min-height: auto;
    min-width: auto;
    font-size: 0.9rem;
}

.mega-menu-tool:hover {
    background-color: #f3f4f6;
}

.mega-menu-tool-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--icon-bg, #e5e7eb);
    color: var(--icon-color, #374151);
}

.mega-menu-tool-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}


/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    background: none;
    border: none;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-login:hover {
    color: #2563eb;
}

.btn-signup {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-signup:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.user-btn:hover {
    color: #2563eb;
    background: #f3f4f6;
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 12rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-dropdown .dropdown-item svg {
    width: 1rem;
    height: 1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    /* Improve touch target */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: #f3f4f6;
}

.mobile-menu-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #374151;
}

@media (min-width: 768px) {
    .mobile-menu-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    animation: slideDown 0.3s ease;
}

.mobile-menu.active {
    display: block;
    /* --- FIX: MAKE MOBILE MENU SCROLLABLE --- */
    max-height: calc(100vh - 3.5rem); /* Viewport height minus header height */
    overflow-y: auto; /* Enable vertical scroll when content overflows */
}

.mobile-menu-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background: #f3f4f6;
}

/* Mobile Menu Accordion */
.mobile-menu-accordion {
    border-bottom: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    margin-top: -1px; /* Overlap border */
}

.mobile-menu-accordion-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: #374151;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    min-height: 44px;
    min-width: 100%;
}
.mobile-menu-accordion-btn .dropdown-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}
.mobile-menu-accordion-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-menu-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background-color: #f9fafb;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mobile-menu-accordion-content .mega-menu-column {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.mobile-menu-accordion-content .mega-menu-heading {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.mobile-menu-accordion-content .mega-menu-tool {
    padding: 0.6rem 0.5rem;
}
/* END Mobile Menu Accordion */


.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-btn:not(.primary) {
    background: #f3f4f6;
    color: #374151;
}

.mobile-menu-btn:not(.primary):hover {
    background: #e5e7eb;
}

.mobile-menu-btn.primary {
    background: #2563eb;
    color: white;
}

.mobile-menu-btn.primary:hover {
    background: #1d4ed8;
}

/* Main Content */
#main-content {
    margin-top: 3.5rem;
}

@media (min-width: 768px) {
    #main-content {
        margin-top: 4rem;
    }
}

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 2rem 0 3rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 5rem 0;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
}

.hero-circle-1 {
    background: #3b82f6;
    top: -10rem;
    right: -10rem;
}

.hero-circle-2 {
    background: #10b981;
    bottom: -10rem;
    left: -10rem;
    animation-delay: 1s;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-title-accent {
    display: block;
    color: #2563eb;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    animation: fadeInUp 0.8s ease 0.3s both;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.5s both;
}

@media (min-width: 480px) {
    .hero-buttons {
        margin-bottom: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        margin-bottom: 4rem;
    }
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Improve touch targets */
    min-height: 44px;
    text-decoration: none;
    justify-content: center;
    width: 100%;
    max-width: 280px;
}

@media (min-width: 768px) {
    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        width: auto;
        max-width: none;
    }
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: none;
    color: #374151;
    border: 2px solid #d1d5db;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Improve touch targets */
    min-height: 44px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
}

@media (min-width: 768px) {
    .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        width: auto;
        max-width: none;
    }
}

.btn-secondary:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: scale(1.05);
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Hero Features */
.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.7s both;
}

@media (min-width: 768px) {
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

@media (min-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }
}

.feature-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5rem);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.feature-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.feature-icon-green {
    background: #d1fae5;
    color: #059669;
}

.feature-icon-orange {
    background: #fed7aa;
    color: #ea580c;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #6b7280;
    text-align: center;
}

/* Tools Section */
.tools-section {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-description {
    font-size: 1rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-description {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .section-description {
        font-size: 1.25rem;
    }
}

.tools-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.tool-category {
    animation: fadeInUp 0.8s ease;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 640px) {
    .tools-grid {
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
    text-decoration: none;
    /* Improve touch targets */
    min-height: 120px;
    justify-content: center;
}

@media (min-width: 768px) {
    .tool-card {
        padding: 1.5rem;
        min-height: 140px;
    }
}

.tool-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tool-card-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.tool-card-blue:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.tool-card-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.tool-card-green:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.tool-card-purple {
    background: #faf5ff;
    border-color: #e9d5ff;
}

.tool-card-purple:hover {
    background: #f3e8ff;
    border-color: #d8b4fe;
}

.tool-card-orange {
    background: #fff7ed;
    border-color: #fed7aa;
}

.tool-card-orange:hover {
    background: #ffedd5;
    border-color: #fdba74;
}

.tool-card-red {
    background: #fbe5e5;
    border-color: #ff9090;
}
.tool-card-red:hover {
    background: #ffe7e7;
    border-color: #fb5555;
}

.tool-card-teal {
    background: #f0fdfa;
    border-color: #99f6e4;
}

.tool-card-teal:hover {
    background: #ccfbf1;
    border-color: #5eead4;
}

.tool-card-pink {
    background: #feeef8;
    border-color: #fdc7dc;
}

.tool-card-pink:hover {
    background: #feddf7;
    border-color: #ffaae7;
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-card-blue .tool-icon {
    background: #dbeafe;
    color: #2563eb;
}

.tool-card-green .tool-icon {
    background: #d1fae5;
    color: #059669;
}

.tool-card-purple .tool-icon {
    background: #e9d5ff;
    color: #7c3aed;
}

.tool-card-orange .tool-icon {
    background: #fed7aa;
    color: #ea580c;
}

.tool-card-teal .tool-icon {
    background: #99f6e4;
    color: #0d9488;
}

.tool-card-red .tool-icon {
    background: #fdb5b5;
    color: #ec1010;
}

.tool-card-pink .tool-icon {
    background: #fbc2e7;
    color: #ff23a0;
}

.tool-icon svg {
    width: 2rem;
    height: 2rem;
}

.tool-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .tool-title {
        font-size: 1.125rem;
    }
}

.tool-card:hover .tool-title {
    color: #374151;
}

.tool-description {
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.tool-card:hover .tool-description {
    color: #4b5563;
}

/* CTA Section */
.cta-section {
    text-align: center;
    animation: fadeInUp 0.8s ease 1s both;
}

.cta-card {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-card .btn-primary {
    background: white;
    color: #2563eb;
}

.cta-card .btn-primary:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

/* Reviews Section */
.reviews-section {
    padding: 3rem 0;
    background: #f9fafb;
}

@media (min-width: 768px) {
    .reviews-section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .reviews-section {
        padding: 5rem 0;
    }
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 480px) {
    .reviews-grid {
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.review-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5rem);
}

.review-quote {
    margin-bottom: 1rem;
}

.review-quote svg {
    width: 2rem;
    height: 2rem;
    color: #2563eb;
    opacity: 0.2;
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.review-stars svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
}

.review-text {
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
}

.author-role {
    font-size: 0.875rem;
    color: #6b7280;
}

.review-highlight {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    margin-top: 4rem;
}

.stats-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-card {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-blue {
    color: #2563eb;
}

.stat-green {
    color: #059669;
}

.stat-purple {
    color: #7c3aed;
}

.stat-orange {
    color: #ea580c;
}

.stat-label {
    color: #6b7280;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f0fdf4 100%);
}

.auth-container {
    width: 100%;
    max-width: 28rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-bottom: 2rem;
}

.back-btn:hover {
    color: #1d4ed8;
}

.back-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6b7280;
}

.auth-form-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #6b7280;
}

.password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #374151;
}

.forgot-password {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #1d4ed8;
}

.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth:hover:not(:disabled) {
    background: #1d4ed8;
}

.btn-auth:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-auth-green {
    background: #059669;
}

.btn-auth-green:hover:not(:disabled) {
    background: #047857;
}

.btn-spinner {
    width: 1.25rem;
    height: 1.25rem;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer p {
    color: #6b7280;
}

.auth-link {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #1d4ed8;
}

.terms-link {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #1d4ed8;
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.6s ease;
}

.success-content {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: slideUp 0.4s ease;
}

.success-emoji {
    font-size: 3.75rem;
    margin-bottom: 1rem;
}

.success-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.success-message {
    color: #6b7280;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0 0;
}

@media (min-width: 768px) {
    .footer {
        padding: 4rem 0 0;
    }
}

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

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section:first-child {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .footer-section:first-child {
        grid-column: 1;
    }
}

.footer-logo {
    display: inline-flex;       
    align-items: center;        
    gap: 10px;                  
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 1rem;
}

.footer-logo-icon {
     width: 32px;
     height: 32px;
     display: block;
}

.footer-logo-text {
     font-size: 1.5rem;
     font-weight: 650;
     color: #1f2937;
     line-height: 1; 
}

.footer-logo-accent {
    color: #60a5fa;
}

.footer-description {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d1d5db;
}

.contact-item svg {
    width: 1rem;
    height: 1rem;
    color: #60a5fa;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #60a5fa;
}

.footer-features {
    border-top: 1px solid #374151;
    padding-top: 3rem;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-feature-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.footer-feature-section:last-child .footer-feature-grid {
    grid-template-columns: 1fr;
}

.footer-feature-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-feature-link:hover {
    color: #60a5fa;
}

.footer-social-section {
    border-top: 1px solid #374151;
    padding-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-social-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-social-title,
.footer-newsletter-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #374151;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #2563eb;
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    padding: 0.5rem 1rem;
    background: #374151;
    border: none;
    border-radius: 0.5rem;
    color: white;
    flex: 1;
}

.newsletter-input::placeholder {
    color: #9ca3af;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #2563eb;
}

.newsletter-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-btn:hover {
    background: #1d4ed8;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: #60a5fa;
}

/* Mobile-specific animations */
@media (max-width: 767px) {
    .animate-fadeInUp,
    .tool-card,
    .feature-card,
    .review-card {
        animation-duration: 0.6s;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .tool-icon svg,
    .feature-icon svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support for Android */
@media (prefers-color-scheme: dark) {
    /* This can be expanded for full dark mode support */
    .header {
        background: rgba(17, 24, 39, 0.95);
        border-bottom-color: #374151;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
*:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Hide focus outline for mouse users */
.js-focus-visible *:focus:not(.focus-visible) {
    outline: none;
}

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

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

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

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

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

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

/* Utility Classes */
.animate-fadeIn {
    animation: fadeIn 0.6s ease;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease;
}

.animate-slideDown {
    animation: slideDown 0.3s ease;
}

.animate-slideUp {
    animation: slideUp 0.4s ease;
}

.animate-pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* Delay Classes */
.delay-300 {
    animation-delay: 300ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus Styles */
button:focus,
input:focus,
textarea:focus {
    outline: none;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .success-overlay {
        display: none !important;
    }
    
    #main-content {
        margin-top: 0 !important;
    }
    
    .page:not(.active) {
        display: none !important;
    }
}