/* Enhanced CSS with modern design improvements */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f97316;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --card-hover-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --sponsored-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --filter-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-success: linear-gradient(135deg, var(--success) 0%, #06b6d4 100%);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.navbar-brand .highlight {
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f1f5f9;
    color: var(--text);
}

/* Hero section with parallax effect */
.hero {
    /* height: 100vh; */
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 0 1rem;
    perspective: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.92)),
        url('../assests/ai-tool.gif') center/cover fixed;
    z-index: -1;
    animation: gradientAnimation 25s ease infinite;
    transform: translateZ(-5px) scale(1.1);
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    max-width: 850px;
    padding: 2rem;
    z-index: 1;
    transform: translateZ(0);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: #e2e8f0;
    font-weight: 300;
}

/* Enhanced search with glass effect */
.search-container {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-container input {
    width: 100%;
    padding: 1.4rem 2rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: white;
    outline: none;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-container button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-container button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Featured section with gradient background */
.sponsored {
    background: var(--sponsored-bg);
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
}

.sponsored::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.3;
    z-index: 0;
}

.sponsored::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.2;
    z-index: 0;
}

.sponsored-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.sponsored-header h2 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.sponsored-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.sponsored-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.promoted-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Card enhancements with 3D effect */
.listings-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.listing-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    transform-style: preserve-3d;
}

.listing-card:hover {
    transform: translateY(-10px) rotateY(3deg) rotateX(2deg);
    box-shadow: var(--card-hover-shadow);
}

.listing-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.listing-card:hover .listing-image img {
    transform: scale(1.08);
}

.listing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.listing-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.listing-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.listing-title h3 {
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 700;
}

.listing-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
}

.listing-rating i {
    color: #fbbf24;
}

.listing-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.7;
}

.listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    transform: translateY(-2px);
}

.tag i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

.tag-primary {
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
}

.tag-secondary {
    background: rgba(139, 92, 246, 0.12);
    color: var(--secondary);
}

.tag-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.listing-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.2rem;
    margin-top: auto;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Review card with gradient border */
.new-review {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.8rem;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--card-shadow);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.new-review::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    z-index: -1;
}

.new-review img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.review-content {
    flex-grow: 1;
}

.review-content p {
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem;
}

.review-content p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 2.5rem;
    color: var(--primary-light);
    font-family: serif;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.review-author span {
    font-weight: 700;
    color: var(--dark);
}

/* Filter section enhancements */
.filters {
    /* background: var(--filter-bg); */
    background: #8379f7;
    padding: 2.5rem 5%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0px;
    z-index: 900;
    border-radius: 22px;
}

.filter-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.filter-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.filter-option {
    padding: 0.7rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.filter-option.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sort-select {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Tool cards with icon animations */
.tools-grid {
    padding: 5rem 5%;
    background: white;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.grid-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 0.8rem;
}

.grid-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.tools-count {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
    background: var(--primary-light);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 30px auto;
}

.tool-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.tool-icon {
    height: 140px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.tool-icon i {
    transition: var(--transition);
}

.tool-card:hover .tool-icon i {
    transform: scale(1.2) rotate(5deg);
}

.tool-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
}

.tool-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tool-header h3 {
    font-size: 1.4rem;
    color: var(--dark);
    font-weight: 700;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
}

.tool-description {
    color: var(--text-light);
    margin-bottom: 1.8rem;
    flex-grow: 1;
    line-height: 1.7;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.tool-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
    margin-top: auto;
}

.tool-stat {
    text-align: center;
    flex: 1;
}

.tool-stat-value {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.tool-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Pagination enhancements */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    gap: 0.6rem;
}

.page-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.1rem;
}

.page-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}



/* ========================= */
/* Responsive Design */
/* ========================= */

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-logo,
    .footer-column {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .footer-logo p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links li,
    .footer-blogs li {
        padding-left: 0;
        text-align: center;
    }

    .footer-links li::before,
    .footer-blogs li::before {
        display: none;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 4rem 0 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-logo h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-logo h2 {
        font-size: 1.75rem;
    }
    
    .contact-button {
        width: 100%;
        justify-content: center;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .sponsored-header h2,
    .grid-header h2 {
        font-size: 2.2rem;
    }

    .navbar {
        padding: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .promoted-badge {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }

    .search-container button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .listing-stats,
    .tool-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}