/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary-color: #64748b;
    --bg-color: #f8faff;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #eff3f8;
    --card-radius: 24px;
    --btn-radius: 50px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --gradient-hero: linear-gradient(135deg, #eef2ff 0%, #fefaff 100%);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 50%, rgba(247, 37, 133, 0.03) 0%, transparent 20%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main) !important;
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.search-container {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: var(--btn-radius);
    display: flex;
    align-items: center;
    width: 300px;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    width: 350px;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    margin-left: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 2rem;
    text-align: center;
}

.hero-title {
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Category Pills */
.category-scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-scroller::-webkit-scrollbar {
    display: none;
}

.category-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.category-pill:hover,
.category-pill.active {
    background: var(--text-main);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-pill i {
    font-size: 1.1rem;
}

/* Section Headers */
.section-header {
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Tool Cards */
.tool-card-wrapper {
    margin-bottom: 24px;
}

.tool-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card-wrapper .tool-card {
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(67, 97, 238, 0.15);
    border-color: var(--primary-color);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

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

.card-content h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-action {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.btn-visit {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tool-card:hover .btn-visit {
    background: var(--text-main);
    color: #fff;
}

/* Badge */
.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fff0f0;
    color: #ff4757;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
}

/* Featured Card Special Style */
.featured-full {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.featured-full .card-content h5 {
    color: white;
}

.featured-full .card-content p {
    color: rgba(255, 255, 255, 0.7);
}

.featured-full .btn-visit {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.featured-full:hover .btn-visit {
    background: white;
    color: #000;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
    color: white;
    text-decoration: none;
}

.footer-subtitle {
    color: #94a3b8;
    max-width: 300px;
    margin-bottom: 2rem;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* Utilities */
.text-shimmer {
    background: linear-gradient(to right, #4361ee 20%, #f72585 40%, #4361ee 60%);
    background-size: 200% auto;
    color: #000;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    display: inline-block;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@media (max-width: 768px) {
    .category-scroller {
        justify-content: flex-start;
        padding-bottom: 1rem;
    }
}

/* Stats Section */
.stats-section {
    padding: 2rem 0 4rem;
}

.stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}