/****************************************
  PART 1 – tools.css (Tools Listing Page)
*****************************************/
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --success: #4cc9f0;
    --warning: #f9c74f;
    --danger: #ef476f;
    --light: #f8f9fa;
    --dark: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f8fafc;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

.hero-gradient {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 50%, #7209b7 100%);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.grid-pattern {
    background-image:
        linear-gradient(rgba(67, 97, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 97, 238, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.tool-tag {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-tag:hover {
    transform: scale(1.1);
}

.search-glow:focus {
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.3);
}

.filter-chip {
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-chip.active {
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    color: white;
    transform: scale(1.05);
}

.gradient-text {
    background: linear-gradient(45deg, #4361ee, #f72585, #4cc9f0, #f9c74f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% auto;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.tool-card-border {
    border-image: linear-gradient(45deg, #4361ee, #f72585) 1;
    border-width: 3px;
    border-style: solid;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(67, 97, 238, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

.loading-dots:after {
    content: ' .';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: ' .';
    }

    40% {
        content: ' ..';
    }

    60% {
        content: ' ...';
    }

    80%,
    100% {
        content: ' .';
    }
}

.stagger-animation>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stagger-animation.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-animation.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-animation.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-animation.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-animation.visible>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-animation.visible>*:nth-child(6) {
    transition-delay: 0.6s;
}

.view-more-btn {
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.view-more-btn:hover::before {
    left: 100%;
}

.slide-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Filter sidebar styling */
.filter-section {
    transition: all 0.3s ease;
    overflow: hidden;
}

.filter-header {
    cursor: pointer;
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-content.open {
    max-height: 500px;
}

.price-range-slider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4361ee;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.price-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4361ee;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    border: none;
}

/* Checkbox styling */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-container:hover input~.checkmark {
    border-color: #4361ee;
}

.checkbox-container input:checked~.checkmark {
    background-color: #4361ee;
    border-color: #4361ee;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/****************************************
  PART 2 – home.css (Home / Directory)
*****************************************/
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --success: #4cc9f0;
    --warning: #f9c74f;
    --danger: #ef476f;
    --light: #f8f9fa;
    --dark: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f8fafc;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

.hero-gradient {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 50%, #7209b7 100%);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(67, 97, 238, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

.glow {
    text-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
}

.gradient-text {
    background: linear-gradient(45deg, #4361ee, #f72585, #4cc9f0, #f9c74f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% auto;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.tool-tag {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-tag:hover {
    transform: scale(1.1);
}

.category-icon {
    transition: all 0.4s ease;
}

.category-icon:hover {
    transform: rotate(15deg) scale(1.1);
}

.typewriter {
    overflow: hidden;
    border-right: .15em solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary);
    }
}

.slide-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.tool-card-border {
    border-image: linear-gradient(45deg, #4361ee, #f72585) 1;
    border-width: 3px;
    border-style: solid;
}

.marquee {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.grid-pattern {
    background-image:
        linear-gradient(rgba(67, 97, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 97, 238, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.neumorphic {
    border-radius: 20px;
    background: #f0f0f0;
    box-shadow: 20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff;
}

.tool-card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s;
}

.tool-card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.search-glow:focus {
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.3);
}

.stats-counter {
    font-variant-numeric: tabular-nums;
}

.category-badge {
    position: relative;
    overflow: hidden;
}

.category-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: rotate(30deg);
    transition: transform 0.5s;
}

.category-badge:hover::after {
    transform: rotate(30deg) translate(10%, 10%);
}

.tool-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #f72585, #4361ee);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: bold;
}

.filter-chip {
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-chip.active {
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    color: white;
    transform: scale(1.05);
}

.tool-image {
    transition: all 0.5s ease;
}

.tool-image:hover {
    transform: scale(1.05) rotate(2deg);
}

.view-more-btn {
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.view-more-btn:hover::before {
    left: 100%;
}

.rainbow-border {
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #4361ee, #f72585, #4cc9f0, #f9c74f) 1;
}

.loading-dots:after {
    content: ' .';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: ' .';
    }

    40% {
        content: ' ..';
    }

    60% {
        content: ' ...';
    }

    80%,
    100% {
        content: ' .';
    }
}

.stagger-animation>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stagger-animation.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-animation.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-animation.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-animation.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-animation.visible>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-animation.visible>*:nth-child(6) {
    transition-delay: 0.6s;
}

/****************************************
  PART 3 – tool-details.css (Details Page)
*****************************************/
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --success: #4cc9f0;
    --warning: #f9c74f;
    --danger: #ef476f;
    --light: #f8f9fa;
    --dark: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f8fafc;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

.hero-gradient {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 50%, #7209b7 100%);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

.grid-pattern {
    background-image:
        linear-gradient(rgba(67, 97, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 97, 238, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.tool-tag {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-tag:hover {
    transform: scale(1.1);
}

.search-glow:focus {
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.3);
}

.gradient-text {
    background: linear-gradient(45deg, #4361ee, #f72585, #4cc9f0, #f9c74f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% auto;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(67, 97, 238, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

.view-more-btn {
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.view-more-btn:hover::before {
    left: 100%;
}

.slide-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stagger-animation.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-animation.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-animation.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-animation.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

/* Progress bar styling */
.progress-bar {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #e5e7eb;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease;
}

/* Tab styling */
.tab {
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    border-bottom: 3px solid #4361ee;
    color: #4361ee;
    font-weight: 600;
}

/* Review star rating */
.rating-stars {
    display: inline-flex;
    position: relative;
}

.rating-stars-background {
    color: #e5e7eb;
}

.rating-stars-foreground {
    color: #fbbf24;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Tool comparison table */
.comparison-row {
    transition: all 0.3s ease;
}

.comparison-row:hover {
    background-color: #f9fafb;
}

/* Screenshot gallery */
.screenshot-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-container:hover .screenshot-overlay {
    transform: translateY(0);
}

/* Pricing card highlight */
.pricing-card-popular {
    position: relative;
    border: 2px solid #4361ee;
    transform: scale(1.05);
}

.pricing-card-popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4361ee;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Feature checklist */
.feature-check {
    display: flex;
    align-items: center;
}

.feature-check.available .check-icon {
    color: #10b981;
}

.feature-check.unavailable .check-icon {
    color: #ef4444;
}

/* Tooltip */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #1f2937;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Animated background elements */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Custom Scrollbar Hiding */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Tool Description Formatting */
.description-content h1, .description-content h2, .description-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1f2937;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}
.description-content h1 { font-size: 2.25rem; }
.description-content h2 { font-size: 1.875rem; }
.description-content h3 { font-size: 1.5rem; }
.description-content h4 { font-size: 1.25rem; font-weight: 600; }
.description-content p { margin-bottom: 1em; }
.description-content ul { list-style-type: disc; padding-left: 1.5em; margin-bottom: 1em; }
.description-content ol { list-style-type: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.description-content strong { font-weight: 700; color: #111827; }

