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

:root {
    /* Brand Colors - Deep & Vibrant */
    --primary-color: #3b82f6;
    /* Vibrant Blue */
    --primary-dark: #2563eb;
    /* Deep Blue */
    --primary-light: #dbeafe;
    /* Soft Blue */

    --accent-glow: #60a5fa;
    /* Glow Color */

    /* Backgrounds */
    --bg-body: #f8fafc;
    /* Cool Light Grey */
    --bg-surface: #ffffff;
    /* Pure White */

    /* Dark Premium Surfaces */
    --surface-dark: #0f172a;
    /* Slate 900 */
    --surface-dark-highlight: #1e293b;
    /* Slate 800 */

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-dark: #f1f5f9;

    /* Borders & Depth */
    --border-subtle: #e2e8f0;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* Navbar - Floating Glass */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--surface-dark) !important;
}

/* Hero Section - Mesh Gradient Background */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    background:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0) 0, transparent 50%);
    background-color: #f8fafc;
    overflow: hidden;
}

/* Mesh Orbs */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(60px);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(60px);
    z-index: 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Search Bar - Neumorphic / High Polish */
.search-wrapper {
    position: relative;
    z-index: 10;
    max-width: 650px;
    margin: 0 auto;
}

.search-input {
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
    /* Space for icon */
    font-size: 1.1rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    transform: translateY(-2px);
    background: white;
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Featured Card - "Dark Mode" Premium Look */
.featured-card {
    background: var(--surface-dark);
    color: white;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtle texture on dark card */
.featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.featured-content {
    position: relative;
    z-index: 2;
}

.featured-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-feature {
    background: white;
    color: var(--surface-dark);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    transition: all 0.2s;
    border: none;
}

.btn-feature:hover {
    background: #f1f5f9;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Icon Box on Featured Card */
.featured-icon-box {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Card Grid - Clean & Minimal */
.tool-card {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.tool-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.tool-card:hover::after {
    transform: scaleX(1);
}

.tool-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.tool-card:hover .tool-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(3deg);
}

.tool-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Category Cards */
.category-card {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card);
}

.category-icon {
    width: 4rem;
    height: 4rem;
    background: var(--bg-body);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Ad Section - Better Integration */
.ad-section {
    position: relative;
    padding: 3rem 0;
    background: transparent;
}

.ad-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-subtle);
    z-index: -1;
}

.ad-label {
    background: var(--bg-body);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Footer */
footer {
    background: var(--surface-dark) !important;
    color: var(--text-on-dark);
}

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

    .featured-card {
        text-align: center;
    }

    .featured-icon-box {
        margin: 2rem auto 0;
    }
}