/* ========================================
   PDFTOOLSHQ - COMPLETE CINEMATIC CSS SYSTEM v2.1.0
   Fixed: Footer, Dropdown, Homepage Tabs, Layout Consistency
   Updated: Icon rotation only on hover
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #0a0a0f;
    --bg-light: #111118;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-light: rgba(255, 255, 255, 0.7);
    --text-lighter: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.4);
    --neon-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --neon-glow-strong: 0 0 60px rgba(99, 102, 241, 0.5);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --header-height: 80px;
    --footer-height: auto;
}

/* ========================================
   BASE RESET
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body.pdftoolshq-saas-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#pdftoolshq-saas-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   GLOBAL HEADER - FIXED NAVIGATION
   ======================================== */
.pdftoolshq-global-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    animation: headerSlideDown 0.6s ease-out;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Container */
.pdftoolshq-nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

/* Logo */
.pdftoolshq-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.pdftoolshq-logo:hover {
    transform: translateY(-2px);
}

.pdftoolshq-logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.pdftoolshq-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 4s ease-in-out infinite;
}

@keyframes logoShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Main Navigation Menu */
.pdftoolshq-nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.pdftoolshq-nav-menu > li {
    position: relative;
}

.pdftoolshq-nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.pdftoolshq-nav-menu a svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.pdftoolshq-nav-menu a:hover svg {
    transform: rotate(180deg);
}

.pdftoolshq-nav-menu a:hover {
    color: white;
    background: rgba(99, 102, 241, 0.15);
}

.pdftoolshq-nav-menu a.active {
    color: white;
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}

/* ========================================
   FIXED DROPDOWN MENU - RESPONSIVE WITH SCROLL
   ======================================== */
.pdftoolshq-nav-dropdown {
    position: relative;
}

.pdftoolshq-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: min(90vw, 700px);
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
}

.pdftoolshq-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.pdftoolshq-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.pdftoolshq-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.pdftoolshq-nav-dropdown:hover .pdftoolshq-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.pdftoolshq-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.pdftoolshq-dropdown-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    background: rgba(20, 20, 30, 0.98);
    z-index: 1;
}

.pdftoolshq-dropdown-col a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: var(--transition);
    border-radius: 6px;
    padding-left: 0.75rem;
}

.pdftoolshq-dropdown-col a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1rem;
}

/* ========================================
   HOMEPAGE CATEGORY TABS - NEW FEATURE
   ======================================== */
.pdftoolshq-category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.pdftoolshq-category-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.pdftoolshq-category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 50px;
}

.pdftoolshq-category-tab:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.pdftoolshq-category-tab:hover::before {
    opacity: 0.3;
}

.pdftoolshq-category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    animation: tabPulse 2s infinite;
}

@keyframes tabPulse {
    0%, 100% { box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 10px 35px rgba(99, 102, 241, 0.6); }
}

/* Badge Pulsing & Glowing */
.pdftoolshq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    animation: badgePulseGlow 2s infinite;
}

@keyframes badgePulseGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2),
                    inset 0 0 10px rgba(99, 102, 241, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.4),
                    inset 0 0 15px rgba(99, 102, 241, 0.2);
        transform: scale(1.05);
    }
}

/* Title Gradient Text Shimmer */
.pdftoolshq-hero-title-big {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
    max-width: 800px;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #a5b4fc 25%, 
        #818cf8 50%, 
        #6366f1 75%, 
        #4f46e5 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 8s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
}

/* Stats Floating & Scaling */
.pdftoolshq-stat-ultimate {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: statFloat 6s ease-in-out infinite;
}

@keyframes statFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.pdftoolshq-stat-ultimate:hover {
    transform: translateY(-15px) scale(1.1);
    animation-play-state: paused;
}

/* Cards Stagger Animation */
.pdftoolshq-tool-card-home {
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Hover Lift with Gradient Glow */
.pdftoolshq-tool-card-home:hover {
    transform: translateY(-16px) !important;
    position: relative;
}

.pdftoolshq-tool-card-home:hover::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.5), 
        rgba(139, 92, 246, 0.5),
        rgba(236, 72, 153, 0.5));
    border-radius: var(--radius-lg);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.7;
}

/* ========================================
   UPDATED ICON STYLES - ROTATION ONLY ON HOVER
   ======================================== */
.pdftoolshq-tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

/* Gentle hover effect when cursor is over the card */
.pdftoolshq-tool-card-home:hover .pdftoolshq-tool-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
    animation: iconGlow 2s ease-in-out infinite;
}

/* Continuous rotation only when cursor is directly over the icon */
.pdftoolshq-tool-icon:hover {
    animation: iconRotateContinuous 2s linear infinite;
    transform: scale(1.2);
}

@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.9));
        transform: scale(1.18);
    }
}

@keyframes iconRotateContinuous {
    0% {
        transform: rotate(0deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1.2);
    }
}

/* ========================================
   GLASS CARDS BOUNCING ICONS
   ======================================== */
.pdftoolshq-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.pdftoolshq-glass-card .pdftoolshq-feature-icon-ultimate {
    animation: iconBounce 3s infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

/* CTA Background Heartbeat Pulse */
.pdftoolshq-cta-section {
    animation: ctaHeartbeat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes ctaHeartbeat {
    0%, 100% { 
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.1) 0%,
            rgba(139, 92, 246, 0.1) 100%);
    }
    25% { 
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.15) 0%,
            rgba(139, 92, 246, 0.15) 100%);
    }
    50% { 
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.2) 0%,
            rgba(139, 92, 246, 0.2) 100%);
    }
    75% { 
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.15) 0%,
            rgba(139, 92, 246, 0.15) 100%);
    }
}

/* CTA Button Grow & Glow */
.pdftoolshq-cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdftoolshq-cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4),
                0 0 60px rgba(99, 102, 241, 0.3);
}

.pdftoolshq-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.7s;
    z-index: -1;
}

.pdftoolshq-cta-button:hover::before {
    left: 100%;
}

/* ========================================
   FIXED FOOTER - COMPACT VERSION
   ======================================== */
.pdftoolshq-global-footer {
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem 1.5rem;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.pdftoolshq-footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.pdftoolshq-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pdftoolshq-footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pdftoolshq-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdftoolshq-footer-col li {
    margin-bottom: 0.35rem;
}

.pdftoolshq-footer-col a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-block;
}

.pdftoolshq-footer-col a:hover {
    color: white;
    transform: translateX(4px);
}

/* Footer Bottom - Super Compact */
.pdftoolshq-footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.pdftoolshq-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdftoolshq-footer-brand img {
    height: 24px;
}

.pdftoolshq-footer-brand .pdftoolshq-logo-text {
    font-size: 1.1rem;
}

.pdftoolshq-footer-copyright {
    color: var(--text-lighter);
    font-size: 0.8rem;
}

.pdftoolshq-footer-tagline {
    color: var(--text-light);
    font-size: 0.8rem;
    max-width: 300px;
    line-height: 1.5;
}

.pdftoolshq-footer-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pdftoolshq-footer-badges .pdftoolshq-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    animation: none;
}

/* ========================================
   HOMEPAGE - UPDATED WITH CATEGORY FILTERS
   ======================================== */
.pdftoolshq-hero-homepage {
    position: relative;
    padding: 6rem 1rem 4rem;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.95) 0%,
        rgba(15, 15, 25, 0.9) 100%);
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

/* Updated Tools Grid with Filtering */
.pdftoolshq-tools-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
    width: 100%;
}

.pdftoolshq-tool-card-home {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 240px;
    justify-content: center;
}

/* Filtering Classes */
.pdftoolshq-tool-card-home[data-category] {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdftoolshq-tools-grid-home.filtered .pdftoolshq-tool-card-home {
    opacity: 0.3;
    transform: scale(0.95);
}

.pdftoolshq-tools-grid-home.filtered .pdftoolshq-tool-card-home.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* ========================================
   ABOUT & CONTACT PAGES - PROFESSIONAL SAAS STYLE
   ======================================== */
.pdftoolshq-page-content {
    position: relative;
    padding: 4rem 1rem 3rem;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.95) 0%,
        rgba(15, 15, 25, 0.9) 100%);
    min-height: calc(100vh - var(--header-height) - 150px);
    flex: 1;
}

.pdftoolshq-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pdftoolshq-page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.pdftoolshq-page-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Content */
.pdftoolshq-about-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.pdftoolshq-about-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.pdftoolshq-about-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.pdftoolshq-about-section p,
.pdftoolshq-about-section li {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.pdftoolshq-about-section ul {
    padding-left: 1.5rem;
}

.pdftoolshq-about-section li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.pdftoolshq-contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
}

.pdftoolshq-form-group {
    margin-bottom: 1.5rem;
}

.pdftoolshq-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
}

.pdftoolshq-form-group input,
.pdftoolshq-form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.pdftoolshq-form-group input:focus,
.pdftoolshq-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .pdftoolshq-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pdftoolshq-tools-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pdftoolshq-features-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pdftoolshq-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pdftoolshq-hero-title-big,
    .pdftoolshq-page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .pdftoolshq-nav-menu {
        display: none;
    }
    
    .pdftoolshq-mobile-toggle {
        display: flex;
    }
    
    .pdftoolshq-mobile-menu.active {
        display: block;
    }
    
    .pdftoolshq-nav-container {
        padding: 0 1rem;
    }
    
    .pdftoolshq-logo-text {
        font-size: 1.5rem;
    }
    
    .pdftoolshq-hero-homepage {
        padding: 4rem 1rem 3rem;
        min-height: 60vh;
    }
    
    .pdftoolshq-hero-title-big {
        font-size: 2.2rem;
    }
    
    .pdftoolshq-hero-subtitle-big {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .pdftoolshq-tools-grid-home {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pdftoolshq-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .pdftoolshq-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .pdftoolshq-category-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .pdftoolshq-category-tab {
        flex-shrink: 0;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .pdftoolshq-nav-container {
        padding: 0 0.75rem;
        height: 65px;
    }
    
    .pdftoolshq-logo-text {
        font-size: 1.25rem;
    }
    
    .pdftoolshq-logo-img {
        height: 28px;
    }
    
    .pdftoolshq-mobile-menu {
        padding: 0.75rem;
    }
    
    .pdftoolshq-hero-homepage,
    .pdftoolshq-page-content {
        padding: 3rem 0.75rem 2rem;
    }
    
    .pdftoolshq-hero-title-big,
    .pdftoolshq-page-header h1 {
        font-size: 1.8rem;
    }
    
    .pdftoolshq-page-subtitle {
        font-size: 1rem;
    }
    
    .pdftoolshq-tool-card-home {
        padding: 1.5rem;
        min-height: 200px;
    }
    
    .pdftoolshq-tool-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .pdftoolshq-tool-card-home h2 {
        font-size: 1.3rem;
    }
}

/* ========================================
   PERFORMANCE & ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Ensure all content sits above orbs */
#pdftoolshq-saas-wrapper,
.pdftoolshq-page-content,
.pdftoolshq-section,
.pdftoolshq-container {
    position: relative;
    z-index: 20;
}