/* ==========================================
   PDFsCook - Main Stylesheet
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --secondary: #3498db;
    --secondary-dark: #2980b9;
    --accent: #2ecc71;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.8rem;
    position: relative;
    z-index: 1040;
    overflow: visible;
}

.top-link {
    color: var(--gray-400);
    transition: var(--transition);
}

.top-link:hover {
    color: var(--white);
}

.social-links a {
    color: var(--gray-500);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 0.75rem;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ---------- Language Switcher ---------- */
.lang-switcher .btn {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.lang-switcher .btn:hover,
.lang-switcher .btn:focus {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.lang-switcher .dropdown-menu {
    min-width: 160px;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 8px;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    position: absolute;
}

.lang-switcher .dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.lang-switcher .dropdown-item:hover {
    background: var(--gray-100);
}

.lang-switcher .dropdown-item.active {
    background: var(--primary);
    color: var(--white);
}

.lang-switcher .dropdown-item img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* ---------- Main Navigation ---------- */
.main-nav {
    background: var(--white);
    padding: 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--transition);
}

.main-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--primary);
}

.brand-text {
    color: var(--dark);
}

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

/* Nav Links */
.main-nav .navbar-nav .nav-link {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 20px 16px;
    position: relative;
    transition: var(--transition);
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link:focus {
    color: var(--primary);
}

.main-nav .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav .navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* Dropdown Toggle Arrow */
.main-nav .dropdown-toggle::after {
    display: none;
}

.main-nav .dropdown-toggle::before {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 6px;
    transition: transform 0.3s ease;
    display: inline-block;
    float: right;
    margin-top: 3px;
}

.main-nav .dropdown.show .dropdown-toggle::before {
    transform: rotate(180deg);
}

/* Nav Right Buttons */
.btn-outline-nav {
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-outline-nav:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-primary-nav {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-primary-nav:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

/* ---------- Mega Menu ---------- */
.mega-dropdown {
    position: static;
}

.mega-menu {
    width: 100%;
    border: none;
    border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0;
    margin-top: 0;
    animation: megaFadeIn 0.25s ease;
}

@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-menu-inner {
    padding: 24px 32px;
}

.mega-menu-title {
    color: var(--gray-600);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mega-menu-grid.compact {
    grid-template-columns: 1fr;
    gap: 4px;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mega-item:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.mega-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.mega-content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.mega-content span {
    font-size: 0.78rem;
    color: var(--gray-600);
    line-height: 1.3;
}

/* ---------- Mobile Menu Toggle ---------- */
.navbar-toggler {
    border: none;
    padding: 8px;
    background: none;
    cursor: pointer;
    display: none;
}

.toggler-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-toggler.active .toggler-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.active .toggler-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active .toggler-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 320px); /* Only cover area outside sidebar */
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1060;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 359px) {
    .mobile-menu-overlay {
        width: calc(100% - 280px);
    }
    .navbar-collapse {
        width: 280px !important;
        right: -280px;
    }
}

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--white);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -80px;
    left: -80px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-badge {
    display: inline-block;
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.hero-badge i {
    margin-right: 6px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-hero-primary {
    background: var(--primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(231, 76, 60, 0.5);
    color: var(--white);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-hero-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.stat-item span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    width: 100%;
    height: 380px;
}

.hero-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.hero-card i {
    font-size: 2rem;
}

.hero-card span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-700);
}

.card-1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.card-1 i { color: #e74c3c; }

.card-2 {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.card-2 i { color: #2b579a; }

.card-3 {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.card-3 i { color: #217346; }

.card-4 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.5s;
}

.card-4 i { color: #f1c40f; }

.hero-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.hero-arrow {
    position: absolute;
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
}

.arrow-1 {
    top: 38%;
    left: 32%;
    transform: rotate(-30deg);
}

.arrow-2 {
    bottom: 38%;
    right: 32%;
    transform: rotate(-30deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-1 {
    animation-name: float1;
}

@keyframes float1 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.card-4 {
    animation-name: float4;
}

@keyframes float4 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 50px rgba(231, 76, 60, 0.6); }
}

/* ---------- Section Headers ---------- */
.section-header {
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: rgba(231, 76, 60, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Featured Tools Section ---------- */
.featured-tools-section {
    padding: 80px 0;
    background: var(--gray-100);
}

.featured-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid transparent;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.featured-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.featured-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.featured-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 12px;
}

.featured-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.featured-card:hover .featured-link {
    color: var(--primary-dark);
}

.featured-link i {
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-link i {
    transform: translateX(4px);
}

/* ---------- All Tools Section ---------- */
.all-tools-section {
    padding: 80px 0;
}

.tool-category {
    margin-bottom: 48px;
}

.tool-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.category-title i {
    color: var(--primary);
    margin-right: 8px;
}

.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
    background: var(--white);
}

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

.tool-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.tool-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.tool-info p {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.4;
    margin: 0;
}

/* ---------- Why Section ---------- */
.why-section {
    padding: 80px 0;
    background: var(--gray-100);
}

.why-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(231,76,60,0.1), rgba(231,76,60,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--primary);
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ---------- How Section ---------- */
.how-section {
    padding: 80px 0;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 1;
}

.step-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-100), var(--white));
    border: 3px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
}

.btn-cta {
    background: var(--primary);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(231, 76, 60, 0.5);
    color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: var(--white);
}

/* Footer Newsletter */
.footer-newsletter {
    background: var(--primary);
    padding: 40px 0;
}

.footer-newsletter h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.newsletter-form .form-control {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    padding: 14px 20px;
    border-radius: 30px 0 0 30px;
    font-size: 0.95rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form .form-control:focus {
    background: rgba(255,255,255,0.3);
    box-shadow: none;
}

.btn-newsletter {
    background: var(--dark);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 0 30px 30px 0;
    font-weight: 700;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-newsletter:hover {
    background: var(--dark-light);
    color: var(--white);
}

/* Footer Main */
.footer-main {
    padding: 60px 0 40px;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-brand a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
}

.footer-brand .logo-icon {
    color: var(--primary);
}

.footer-brand .brand-highlight {
    color: var(--primary);
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

/* Footer Trust */
.footer-trust {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.trust-item i {
    color: var(--accent);
    font-size: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--gray-600);
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==========================================
   Responsive Styles
   ========================================== */

/* Large screens down to tablet */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: var(--white);
        z-index: 1070;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-xl);
        padding: 0;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-collapse .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid var(--gray-200);
        background: var(--gray-50);
    }

    .navbar-collapse .mobile-menu-header .brand-text {
        font-weight: 800;
        font-size: 1.1rem;
        color: var(--dark);
    }

    .navbar-collapse .mobile-menu-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: var(--gray-200);
        color: var(--dark);
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .navbar-collapse .mobile-menu-close:hover {
        background: var(--primary);
        color: white;
    }

    .navbar-collapse .navbar-nav {
        padding: 16px;
        flex-direction: column;
    }

    .main-nav .navbar-nav .nav-link {
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
    }

    .main-nav .navbar-nav .nav-link:hover {
        background: var(--gray-100);
    }

    .main-nav .navbar-nav .nav-link::after {
        display: none;
    }

    /* Mobile Mega Menu */
    .mega-dropdown {
        position: relative;
    }

    /* Force Bootstrap dropdown-menu visible when .show is added via JS */
    .navbar-collapse .dropdown-menu,
    .navbar-collapse .mega-menu {
        display: none;
        position: static !important;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--primary);
        border-radius: 0;
        margin: 0 0 8px 16px;
        animation: none;
        width: 100%;
        background: var(--white);
        padding: 0;
    }

    .navbar-collapse .dropdown-menu.show,
    .navbar-collapse .mega-menu.show {
        display: block;
    }

    /* Dropdown toggle arrow indicator on mobile */
    .navbar-collapse .dropdown-toggle::after {
        display: inline-block !important;
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.65rem;
        border: none;
        margin-left: auto;
        transition: transform 0.2s ease;
    }

    .navbar-collapse .dropdown-toggle.show::after {
        transform: rotate(180deg);
    }

    .navbar-collapse .nav-item {
        border-bottom: 1px solid var(--gray-100);
    }

    .navbar-collapse .nav-link {
        display: flex;
        align-items: center;
    }

    .mega-menu-inner {
        padding: 12px 16px;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mega-item {
        padding: 10px;
    }

    .mega-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .mega-content strong {
        font-size: 0.85rem;
    }

    .mega-content span {
        font-size: 0.75rem;
    }

    .mega-menu .row {
        flex-direction: column;
    }

    .mega-menu .col-lg-6 {
        width: 100%;
    }

    .mega-menu-title {
        margin-top: 12px;
    }

    /* Mobile Nav Right */
    .nav-right {
        padding: 16px;
        border-top: 1px solid var(--gray-200);
        margin-top: 8px;
        flex-direction: column;
    }

    .nav-right .btn {
        width: 100%;
        text-align: center;
    }

    /* Hero adjustments */
    .hero-section {
        padding: 50px 0 70px;
    }

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

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

    .section-title {
        font-size: 1.7rem;
    }
}

/* Tablet */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-item strong {
        font-size: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

    .featured-tools-section,
    .all-tools-section,
    .why-section,
    .how-section,
    .cta-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .footer-newsletter .row {
        text-align: center;
    }

    .footer-newsletter .col-lg-7 {
        margin-top: 16px;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 10px;
    }

    .footer-bottom .col-md-6:first-child {
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 40px 0 60px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .tool-card {
        padding: 14px;
    }

    .tool-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 0.95rem;
    }

    .tool-info h4 {
        font-size: 0.88rem;
    }

    .tool-info p {
        font-size: 0.78rem;
    }

    .featured-card {
        padding: 20px 16px;
    }

    .featured-icon {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}
