/* ========================================
   Global Styles & Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --accent: #38bdf8;
    --accent-hover: #6366f1;
    --card-bg: #1e293b;
    --card-hover: #334155;
    --card-gap: 1rem;
    /* unified gap between cards */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    background-color: var(--bg-secondary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h2 {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.tools-search-wrapper {
    position: relative;
    max-width: 520px;
    margin: 0 auto 1.8rem;
}

.tools-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
    display: flex;
    align-items: center;
}

.tools-search-input {
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    border: 1.5px solid rgba(56, 189, 248, 0.2);
    border-radius: 14px;
    padding: 12px 16px 12px 42px !important;
    color: #e2e8f0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
}

.tools-search-input:focus {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.tools-search-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Animated Blobs */
.animated-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobMove 20s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(56, 189, 248, 0.1) 50%, transparent 100%);
    top: -200px;
    left: -200px;
    animation-duration: 25s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 100%);
    bottom: -250px;
    right: -250px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 35s;
    animation-delay: -10s;
}

.blob-4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(236, 72, 153, 0.1) 50%, transparent 100%);
    top: 20%;
    right: 10%;
    animation-duration: 28s;
    animation-delay: -15s;
}

/* Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    animation: particleFloat 15s infinite ease-in-out;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.particle-2 {
    top: 60%;
    left: 20%;
    animation-duration: 18s;
    animation-delay: -2s;
}

.particle-3 {
    top: 40%;
    right: 15%;
    animation-duration: 14s;
    animation-delay: -4s;
}

.particle-4 {
    bottom: 30%;
    left: 30%;
    animation-duration: 16s;
    animation-delay: -6s;
}

.particle-5 {
    top: 80%;
    right: 25%;
    animation-duration: 20s;
    animation-delay: -8s;
}

.particle-6 {
    top: 10%;
    right: 40%;
    animation-duration: 22s;
    animation-delay: -10s;
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    animation: gridMove 20s linear infinite;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    position: relative;
    z-index: 2;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 15, 15, 0.4);
}

/* ========================================
   Tools Carousel Section
   ======================================== */
.tools-section {
    padding: 4rem 0;
    min-height: 60vh;
    background-color: var(--bg-primary);
    overflow-x: hidden;
    width: 100%;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid transparent;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    background-color: var(--card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.tools-counter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 1rem 2.5rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.tools-counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.counter-number {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.counter-label {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Carousel Container */
.carousel-wrapper {
    position: relative;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    border-radius: 2%;
    height: 120%;
    padding: 20px 72px;
    width: 100%;
    box-sizing: border-box;
}

.carousel-wrapper.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.tools-grid {
    display: flex;
    flex-direction: row;
    gap: 0;
    /* outer gap removed - pages manage their internal gaps */
    transition: opacity 0.3s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    align-items: stretch;
}

.tools-grid::-webkit-scrollbar {
    display: none;
}


/* Each page shows a 4x4 grid of tools */
.tools-page {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: min-content;
    grid-auto-flow: row;
    gap: var(--card-gap);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    align-items: start;
    justify-items: stretch;
    width: 100%;
    align-content: start;
}

/* Always keep 4 columns per page on all breakpoints as requested */

/* Mobile-specific grid adjustments are now in the main @media (max-width: 480px) block */

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.85);
    border: 2px solid rgba(56, 189, 248, 0.35);
    border-radius: 50%;
    color: #38bdf8;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.carousel-arrow:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.3);
}

.carousel-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

/* Pagination Dots */
.carousel-dots {
    display: flex;
    /* show pagination dots */
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    transition: opacity 0.2s ease;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(148, 163, 184, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(56, 189, 248, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    width: 28px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    border-radius: 5px;
    transform: none;
}

/* Page Counter */
.page-counter {
    display: block;
    text-align: center;
    margin-top: 8px;
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    grid-column: auto;
    grid-row: auto;
}

.tool-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    box-shadow: 0 4px 13px rgba(0, 0, 0, 0.2);
    min-width: 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow: hidden;
    box-sizing: border-box;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    width: 100%;
    height: auto;
    gap: 0.5rem;
    /* card sizing is handled by page grid - aspect-ratio maintains square shape */
    scroll-snap-align: start;
}

/* Invisible placeholders used to preserve grid sizing on pages with
   incomplete rows (keeps last card from stretching to fill page) */
.tool-card-placeholder {
    visibility: hidden;
    pointer-events: none;
    background: transparent;
    box-shadow: none;
    border-color: transparent;
    animation: none;
    opacity: 0;
    aspect-ratio: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.tool-card-link:hover .tool-card {
    transform: translateY(-5px);
    border-color: var(--accent);
    background-color: var(--card-hover);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.2);
}

/* Modern hover overlay */
.tool-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.95) 0%, rgba(99, 102, 241, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.tool-card-link:hover .tool-card-overlay {
    opacity: 1;
}

.visit-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.8rem 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card-link:hover .visit-text {
    transform: translateY(0);
}

.visit-text::after {
    content: '→';
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.tool-card-link:hover .visit-text::after {
    transform: translateX(5px);
}

.tool-icon-container {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    transition: transform 0.3s ease;
    display: block;

}

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

.tool-icon-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border-radius: 8px;
    text-transform: uppercase;
}

.tool-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.3;
    overflow: visible;
    white-space: normal;
    min-height: auto;
    flex-shrink: 0;
    display: block;
}

.tool-description {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   Suggest a tool
   ======================================== */
.suggest-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.suggest-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(56, 189, 248, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.suggest-card h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.suggest-card>p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.suggest-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.suggest-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.suggest-field label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.suggest-field input {
    background: var(--bg-primary);
    border: 1.5px solid rgba(56, 189, 248, 0.12);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.25s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.suggest-field input:focus {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.suggest-field input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.suggest-submit {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
    margin-top: 0.3rem;
    width: 100%;
}

.suggest-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.45);
}

.suggest-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.suggest-status {
    text-align: center;
    font-size: 0.9rem;
    min-height: 1.4rem;
    margin-top: 0.2rem;
}

.suggest-status.success {
    color: #22c55e;
}

.suggest-status.error {
    color: #ef4444;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--bg-primary);
}

.footer-credit {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-author-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 50px;
    padding: 8px 20px 8px 8px;
    transition: all 0.3s ease;
}

.footer-author-link:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.footer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

.footer-author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-made-by {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.footer-author-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-linkedin-badge {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
    margin-left: 6px;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-align: center;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blobMove {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translate(30px, -40px) scale(1.2);
        opacity: 1;
    }

    50% {
        transform: translate(-20px, -60px) scale(0.8);
        opacity: 0.4;
    }

    75% {
        transform: translate(40px, -20px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .logo h2 {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .search-container {
        width: 100%;
    }

    .search-input {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.5rem 1rem 0.5rem 2.2rem;
    }

    .search-input:focus {
        width: 100%;
    }

    .hero {
        padding: 3rem 0;
        min-height: 50vh;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-button {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .filter-buttons {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .carousel-wrapper {
        padding: 18px 64px;
        height: auto;
    }

    .carousel-arrow {
        width: 46px;
        height: 46px;
        font-size: 1.45rem;
    }

    .tools-section {
        padding: 2.5rem 0;
    }

    .about-section {
        padding: 3rem 0;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .about-section p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Keep same card detail behavior as desktop */
    .tool-description {
        display: -webkit-box;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-content {
        gap: 0.75rem;
    }

    .logo h2 {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .search-input {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem 0.5rem 2rem;
    }

    .hero {
        min-height: 60vh;
        padding: 3rem 0;
    }

    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .animated-blob {
        opacity: 0.25;
        filter: blur(50px);
    }

    .blob-1 {
        width: 280px;
        height: 280px;
        top: -80px;
        left: -80px;
    }

    .blob-2 {
        width: 320px;
        height: 320px;
        bottom: -100px;
        right: -100px;
    }

    .blob-3 {
        width: 220px;
        height: 220px;
    }

    .blob-4 {
        width: 240px;
        height: 240px;
        top: 15%;
        right: 5%;
    }

    .particle {
        display: block;
        width: 3px;
        height: 3px;
    }

    .grid-overlay {
        opacity: 0.2;
        background-size: 35px 35px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }

    .hero-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }

    .tools-section {
        padding: 2rem 0;
    }

    .filter-buttons {
        gap: 0.4rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        border-radius: 20px;
        min-height: 36px;
        /* Better touch target */
        -webkit-tap-highlight-color: transparent;
    }

    /* Fixed carousel wrapper for small screens */
    .carousel-wrapper {
        position: relative;
        padding: 16px 56px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        border-radius: 12px;
    }

    /* Position arrows outside the grid container */
    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
        padding: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        min-width: 44px;
        /* Better touch target */
    }

    .carousel-arrow:hover {
        transform: translateY(-50%) scale(1.08);
    }

    .carousel-arrow.left {
        left: 8px;
    }

    .carousel-arrow.right {
        right: 8px;
    }

    /* Grid container - fully centered and constrained */
    .tools-grid {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        padding: 0 4px;
        margin: 0 auto;
        scrollbar-width: none;
    }

    .tools-grid::-webkit-scrollbar {
        display: none;
    }

    /* Mobile: 3 columns x 3 rows = 9 cards per page */
    .tools-page {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 6px 8px;
        gap: 8px;
        grid-auto-rows: min-content;
        align-items: start;
        scroll-snap-stop: always;
    }

    .tool-card-link {
        display: block;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
    }

    /* Compact mobile card: centered icon + name only */
    .tool-card {
        padding: 0.75rem 0.5rem;
        aspect-ratio: 1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
        gap: 0.4rem;
        border-radius: 14px;
    }

    .tool-icon-container {
        width: 44px;
        height: 44px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
    }

    .tool-icon {
        padding: 8px;
        margin: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .tool-icon-fallback {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        align-items: center;
        justify-content: center;
    }

    /* Mobile: name only, centered, truncated */
    .tool-name {
        font-size: 0.7rem;
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    /* Hide description on mobile */
    .tool-description {
        display: none;
    }

    /* Hide hover overlay on mobile */
    .tool-card-overlay {
        display: none;
    }

    .visit-text {
        display: none;
    }

    .carousel-dots {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dot.active {
        width: 28px;
    }

    .about-section {
        padding: 2.5rem 0;
    }

    .about-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .about-section p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
        line-height: 1.6;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer-copy {
        font-size: 0.8rem;
    }

    .tools-counter-bar {
        gap: 1.5rem;
        padding: 1rem 1.25rem;
    }

    .counter-number {
        font-size: 2rem;
    }

    .footer-author-link {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-linkedin-badge {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
}

/* AIRTABLE: fallback banner styling above tools grid */
.airtable-fallback-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 12px 12px;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(203, 213, 225, 0.3);
    background: rgba(30, 41, 59, 0.7);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* AIRTABLE: dismiss button for fallback banner */
.airtable-fallback-dismiss {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.airtable-fallback-dismiss:hover {
    color: var(--text-primary);
}

/* AIRTABLE: skeleton card loading state */
.tool-card-skeleton {
    opacity: 1;
    animation: none;
    pointer-events: none;
}

.tool-card-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: airtableSkeletonShimmer 1.2s infinite;
}

/* AIRTABLE: skeleton inner placeholders */
.skeleton-icon,
.skeleton-line {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 8px;
}

.skeleton-icon {
    width: 48px;
    height: 48px;
}

.skeleton-line {
    width: 100%;
    height: 12px;
}

.skeleton-line-title {
    width: 70%;
    height: 16px;
}

.skeleton-line-short {
    width: 80%;
}

@keyframes airtableSkeletonShimmer {
    100% {
        left: 100%;
    }
}

/* ========================================
   Chatbot Widget
   ======================================== */
.chatbot-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.chatbot-toggle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 24px rgba(56, 189, 248, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    outline: none;
}

.chatbot-toggle:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.65), 0 2px 12px rgba(0, 0, 0, 0.3);
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    animation: badgePop 2s ease-in-out infinite;
}

@keyframes badgePop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.chatbot-panel {
    position: absolute;
    bottom: 78px;
    right: 0;
    width: 360px;
    max-height: 530px;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
    transform-origin: bottom right;
    transform: scale(0.8) translateY(24px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
        opacity 0.25s ease;
}

.chatbot-panel.is-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 11px;
}

.chatbot-avatar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 1px;
}

.chatbot-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.chatbot-close-btn {
    width: 28px;
    height: 28px;
    background: rgba(148, 163, 184, 0.08);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
}

.chatbot-close-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.15) transparent;
}

.chatbot-messages::-webkit-scrollbar {
    width: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.2);
    border-radius: 2px;
}

.chatbot-msg {
    display: flex;
    flex-direction: column;
}

.chatbot-msg-bot {
    align-items: flex-start;
}

.chatbot-msg-user {
    align-items: flex-end;
}

.chatbot-bubble {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.83rem;
    line-height: 1.58;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    hyphens: auto;
}

.chatbot-msg-bot .chatbot-bubble {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.12);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.chatbot-msg-user .chatbot-bubble {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-msg-time {
    font-size: 0.66rem;
    color: rgba(148, 163, 184, 0.4);
    margin-top: 4px;
    padding: 0 4px;
}

.chatbot-typing-bubble {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.chatbot-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    opacity: 0.4;
    animation: dotBounce 1.2s ease-in-out infinite;
}

.chatbot-dot:nth-child(2) {
    animation-delay: 0.18s;
}

.chatbot-dot:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes dotBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-7px);
        opacity: 1;
    }
}

.chatbot-chips {
    padding: 4px 14px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}

.chatbot-chip {
    background: rgba(56, 189, 248, 0.07);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 0.73rem;
    color: #94a3b8;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.chatbot-chip:hover {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.chatbot-input-row {
    padding: 12px 14px;
    border-top: 1px solid rgba(56, 189, 248, 0.08);
    display: flex;
    gap: 9px;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    flex-shrink: 0;
}

.chatbot-input {
    flex: 1;
    background: rgba(30, 41, 59, 0.9);
    border: 1.5px solid rgba(56, 189, 248, 0.12);
    border-radius: 12px;
    padding: 9px 13px;
    color: #e2e8f0;
    font-size: 0.83rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.chatbot-input:focus {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.07);
}

.chatbot-input::placeholder {
    color: rgba(148, 163, 184, 0.38);
}

.chatbot-send {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    border: none;
    border-radius: 11px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
    outline: none;
}

.chatbot-send:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.5);
}

.chatbot-send:active {
    transform: scale(0.94);
}

.chatbot-send:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 480px) {
    .chatbot-container {
        bottom: 16px;
        right: 16px;
    }

    .chatbot-panel {
        width: calc(100vw - 28px);
        right: 0;
        max-height: min(68dvh, 68vh);
        bottom: 74px;
    }

    .chatbot-panel.keyboard-open {
        max-height: min(48dvh, 48vh);
    }

    .chatbot-messages {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .chatbot-input-row {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: rgba(15, 23, 42, 0.98);
        padding-bottom: env(safe-area-inset-bottom, 8px);
    }

    .lang-switcher {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 10000;
        background: rgba(10, 15, 30, 0.9);
        border: 1px solid rgba(56, 189, 248, 0.2);
        border-radius: 8px;
        padding: 2px;
        gap: 2px;
    }

    .lang-btn {
        font-size: 0.62rem;
        padding: 3px 6px;
        border-radius: 5px;
    }

    .chatbot-toggle-label {
        display: none;
    }
}

/* Stats preview section */
.stats-preview-section {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.stats-preview-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.stats-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stats-preview-title {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.stats-preview-sub {
    font-size: 0.82rem;
    color: #94a3b8;
}

.stats-view-all-btn {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.stats-view-all-btn:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

.stats-chart-wrap {
    position: relative;
    height: 220px;
}

.mini-no-data {
    text-align: center;
    padding: 2.5rem;
    color: #94a3b8;
    font-size: 0.88rem;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 10px;
    padding: 3px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.lang-btn:hover {
    color: #e2e8f0;
    background: rgba(56, 189, 248, 0.1);
}

.lang-btn.active {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;
}

/* ====== RTL / Arabic Support ====== */
body.lang-ar {
    direction: rtl;
    text-align: right;
}

body.lang-ar .nav-content { flex-direction: row-reverse; }
body.lang-ar .nav-links { margin-right: 0; margin-left: auto; }
body.lang-ar .tools-counter-bar { direction: rtl; }
body.lang-ar .filter-buttons { flex-direction: row-reverse; flex-wrap: wrap; }
body.lang-ar .suggest-form { text-align: right; }
body.lang-ar .footer-author-link { flex-direction: row-reverse; }
body.lang-ar .footer-author-info { text-align: right; }
body.lang-ar .chatbot-container { left: 28px; right: auto; }
body.lang-ar .chatbot-panel { left: 0; right: auto; transform-origin: bottom left; }
body.lang-ar .chatbot-msg-user { align-items: flex-start; }
body.lang-ar .chatbot-msg-bot { align-items: flex-end; }
body.lang-ar .chatbot-msg-user .chatbot-bubble {
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 4px;
}
body.lang-ar .chatbot-msg-bot .chatbot-bubble {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
}
body.lang-ar .chatbot-input-row { flex-direction: row-reverse; }
body.lang-ar .chatbot-chips { flex-direction: row-reverse; flex-wrap: wrap; }
body.lang-ar .stats-preview-header { flex-direction: row-reverse; }
body.lang-ar .carousel-arrow.left { left: auto; right: 10px; }
body.lang-ar .carousel-arrow.right { right: auto; left: 10px; }
body.lang-ar .hero-content { text-align: center; }
body.lang-ar .suggest-field label { text-align: right; }
body.lang-ar .suggest-field input { text-align: right; }
body.lang-ar .page-counter { direction: ltr; }
body.lang-ar .tools-search-icon { left: auto; right: 14px; }
body.lang-ar .tools-search-input { padding-left: 16px !important; padding-right: 42px !important; }

@media (max-width: 480px) {
    body.lang-ar .chatbot-container { left: 16px; right: auto; }
    body.lang-ar .chatbot-panel { left: 0; right: auto; }
}

.hero-rotating-word {
    display: inline-block;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
    min-width: 180px;
}

#heroTypewriter::after {
    content: '|';
    animation: cursorBlink 0.8s step-end infinite;
    color: #38bdf8;
    margin-left: 2px;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.chatbot-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row-reverse;
}

.chatbot-toggle-label {
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
    animation: labelPulse 3s ease-in-out infinite;
}

.chatbot-toggle-label:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.5);
}

@keyframes labelPulse {

    0%,
    100% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 2px 20px rgba(56, 189, 248, 0.25);
    }
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: rgba(10, 15, 30, 0.98);
    border-left: 1px solid rgba(56, 189, 248, 0.15);
    z-index: 9998;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    backdrop-filter: blur(20px);
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-drawer a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-nav-drawer a:hover {
    color: #38bdf8;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    backdrop-filter: blur(2px);
}

.mobile-nav-overlay.show {
    display: block;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-links {
        display: none;
    }
}

/* Footer links row */
.footer-links {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}
.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color .2s;
}
.footer-links a:hover { color: #38bdf8; }