@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Light Mode */
    --primary: #2563eb;       /* Sleek Royal Blue */
    --primary-light: #3b82f6;
    --secondary: #f97316;     /* Vibrant Accent Orange */
    --secondary-light: #fb923c;
    --background: #f8fafc;    /* Clean White/Slate background */
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.7);
    --border: #e2e8f0;
    --text-primary: #0f172a;  /* Slate 900 */
    --text-secondary: #475569;/* Slate 600 */
    --text-muted: #94a3b8;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-premium: 0 20px 25px -5px rgba(37, 99, 235, 0.05), 0 10px 10px -5px rgba(249, 115, 22, 0.03);
    --blur-glass: 12px;
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --background: #090d16;
    --surface: #131b2e;
    --surface-glass: rgba(19, 27, 46, 0.75);
    --border: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Branding Gradient Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.gradient-border {
    position: relative;
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 1px;
}
.gradient-border::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.7;
    transition: var(--transition);
}
.gradient-border:hover::before {
    opacity: 1;
}

/* Floating Gradient Blobs */
.blob-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary);
    top: -100px;
    right: 5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background-color: var(--secondary);
    bottom: -150px;
    left: -100px;
    animation-delay: 5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-light);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1) rotate(0deg); }
    50% { transform: translateY(30px) scale(1.1) rotate(180deg); }
    100% { transform: translateY(0px) scale(1) rotate(360deg); }
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-premium);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px -15px rgba(37, 99, 235, 0.1), 0 10px 20px -10px rgba(249, 115, 22, 0.05);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Shared Header/Navbar */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo span.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--text-muted);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--background);
    color: var(--primary);
    border-color: var(--primary-light);
}

/* Theme Toggle Slider icon */
#theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Hamburger menu */
.menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

/* Search Engine */
.search-container {
    max-width: 650px;
    margin: 0 auto 4rem auto;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.4rem 0.5rem 0.4rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1.05rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box svg {
    color: var(--text-muted);
    margin-right: 0.8rem;
    width: 20px;
    height: 20px;
}

.search-results {
    position: absolute;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    top: calc(100% + 8px);
    left: 0;
    box-shadow: var(--shadow-lg);
    max-height: 350px;
    overflow-y: auto;
    z-index: 100;
    text-align: left;
    display: none;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.search-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.search-item-cat {
    font-size: 0.75rem;
    background: var(--border);
    color: var(--text-secondary);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: auto;
}

/* Grid Dashboard Mockup Animation */
.mockup-illustration {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    padding: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(var(--blur-glass));
}

[data-theme="dark"] .mockup-illustration {
    background: linear-gradient(135deg, rgba(19,27,46,0.9) 0%, rgba(19,27,46,0.5) 100%);
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.mockup-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    animation: pulseMockup 4s infinite ease-in-out;
}

.mockup-card:nth-child(2) { animation-delay: 1.3s; }
.mockup-card:nth-child(3) { animation-delay: 2.6s; }

.mockup-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mockup-line {
    height: 8px;
    border-radius: 4px;
    background: var(--border);
}

.mockup-line-sh { width: 40%; }
.mockup-line-lg { width: 85%; }
.mockup-line-md { width: 60%; }

@keyframes pulseMockup {
    0%, 100% { transform: scale(1); box-shadow: var(--shadow-sm); }
    50% { transform: scale(1.02); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
}

/* Category Filter Bar */
.filter-section {
    max-width: 1300px;
    margin: 4rem auto 2rem auto;
    padding: 0 1.5rem;
}

.category-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

.tab-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* Tools Grid */
.tools-section {
    max-width: 1300px;
    margin: 0 auto 6rem auto;
    padding: 0 1.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Category Grid Headings */
.category-grid-heading {
    grid-column: 1 / -1;
    margin: 3.5rem 0 1.5rem 0;
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.category-grid-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.category-grid-heading:first-of-type {
    margin-top: 1rem;
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.8rem;
    height: 100%;
    text-decoration: none;
    color: var(--text-primary);
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.tool-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.tool-bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0.2rem;
}

.tool-bookmark-btn:hover, .tool-bookmark-btn.active {
    color: #eab308; /* Star yellow */
    transform: scale(1.15);
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 1.2rem;
}

.tool-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.tool-card-footer span.arrow {
    font-size: 1rem;
    transition: var(--transition);
}

.tool-card:hover .tool-card-footer span.arrow {
    transform: translateX(4px);
}

.tool-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.tool-tag.trending {
    background: rgba(249, 115, 22, 0.08);
    color: var(--secondary);
}

/* User Personalization sections */
.personalized-section {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .personalized-section {
        grid-template-columns: 1fr;
    }
}

.personal-box {
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.personal-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.personal-box h2 svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.personal-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 280px;
    overflow-y: auto;
}

.personal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.personal-item:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.02);
}

.personal-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.no-items-placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    padding: 2rem 0;
    font-style: italic;
}

/* Ad Placement Containers */
.ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.05);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 2rem auto;
    text-align: center;
    padding: 1rem;
    overflow: hidden;
    max-width: 100%;
}

.ad-slot::before {
    content: 'SPONSORED ADVERTISEMENT';
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.ad-banner-horizontal {
    width: 728px;
    height: 90px;
}

.ad-banner-sidebar {
    width: 300px;
    height: 250px;
}

.ad-banner-inline {
    width: 100%;
    min-height: 100px;
    max-height: 200px;
}

@media (max-width: 768px) {
    .ad-banner-horizontal {
        width: 320px;
        height: 50px;
    }
}

/* Newsletter section */
.newsletter-section {
    max-width: 1300px;
    margin: 6rem auto;
    padding: 0 1.5rem;
}

.newsletter-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.newsletter-box h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.newsletter-box p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem auto;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.6rem;
}

.newsletter-form input {
    flex: 1;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    outline: none;
    color: var(--text-primary);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* FAQ Accordion Section */
.faq-section {
    max-width: 900px;
    margin: 6rem auto;
    padding: 0 1.5rem;
}

.faq-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 200px;
}

/* PREMIUM FOOTER */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 5rem 1.5rem 2rem 1.5rem;
    transition: var(--transition);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-link:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-social-link.x-icon:hover {
    background: #0f1419;
    border-color: #0f1419;
}

.footer-social-link.fb-icon:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-social-link.ig-icon:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
}

.footer-social-link.pin-icon:hover {
    background: #bd081c;
    border-color: #bd081c;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column ul a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column ul a:hover {
    color: var(--primary);
    padding-left: 3px;
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--surface);
    color: var(--text-primary);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 280px;
    animation: slideIn 0.3s ease forwards;
    transition: var(--transition);
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.info { border-left-color: #3b82f6; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* TOOL PAGE SPECIFICS */
.tool-page-container {
    max-width: 1300px;
    margin: 2rem auto 6rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.tool-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* Rating Panel */
.rating-panel {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 1.5rem 0;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.star {
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.star:hover, .star.active {
    color: #eab308;
    transform: scale(1.1);
}

/* Share Panel */
.share-panel {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.share-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: white;
    font-weight: 600;
}

.share-tw { background: #1da1f2; }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .tool-page-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    .hero-ctas a {
        width: 100%;
        max-width: 250px;
    }
    .mockup-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   Premium UI Animations & Interactive Micro-Transitions
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(37, 99, 235, 0.25);
    }
}

/* Page load animations for main sections */
header {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero {
    animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.filter-section {
    animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.tools-section {
    animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.personalized-section {
    animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.faq-section {
    animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.newsletter-section {
    animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

/* Staggered load animation helper for card listings */
.gradient-border {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
    transition: var(--transition);
}

/* Dynamic Hover Micro-animations */
.tool-card-icon {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.tool-card:hover .tool-card-icon {
    transform: scale(1.18) rotate(6deg);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.tool-bookmark-btn svg {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.tool-bookmark-btn:hover svg {
    transform: scale(1.25) rotate(15deg);
}

/* Smooth bounce on Tab Navigation */
.tab-btn {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.tab-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

.tab-btn:active {
    transform: translateY(1px) scale(0.97);
}

/* Hero CTA button interactions */
.hero-ctas .btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hero-ctas .btn:hover {
    transform: translateY(-3px) scale(1.03);
}

.hero-ctas .btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Navigation Mega Dropdown Styles */
.nav-dropdown-item {
    position: relative;
}

.nav-mega-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -250px;
    width: 85vw;
    max-width: 850px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    padding: 1.5rem;
    z-index: 1100;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-mega-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mega-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-height: 450px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .mega-dropdown-grid {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
    .nav-mega-dropdown {
        width: 90vw;
        right: -50px;
    }
}

.mega-category-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mega-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mega-category-list li a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: block;
    transition: var(--transition);
}

.mega-category-list li a:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

/* Custom Dropdown Combo Box inside Mega Nav Dropdown */
.custom-combo {
    position: relative;
    width: 100%;
}

.combo-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.combo-btn:hover {
    border-color: var(--primary-light);
    background: var(--background);
    color: var(--text-primary);
}

.custom-combo.open .combo-btn {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.combo-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.custom-combo.open .combo-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.combo-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1200;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.custom-combo.open .combo-dropdown {
    display: flex;
}

/* Custom Scrollbar for combo-dropdown */
.combo-dropdown::-webkit-scrollbar {
    width: 6px;
}

.combo-dropdown::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 3px;
}

.combo-dropdown::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}

.combo-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
}

.combo-option:last-child {
    border-bottom: none;
}

.combo-option:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary);
    padding-left: 1rem;
}

.option-icon {
    font-size: 1.1rem;
}

.option-name {
    font-weight: 500;
}



