/* ==========================================================================
   JPG MASTER PRO - PREMIUM COLOR SYSTEM & BASE CUSTOMIZATIONS
   ========================================================================== */
@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 {
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Light/Regular Theme (Clean Off-White Canvas with Crimson Red & Cobalt Blue Details) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.03);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --hover-shadow: 0 20px 40px rgba(239, 68, 68, 0.08), 0 1px 5px rgba(59, 130, 246, 0.05);
    --border-color: #e2e8f0;
    
    /* Elegant Gradients (Red to Blue Tech) */
    --gradient-primary: linear-gradient(135deg, #ef4444 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-success: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    
    /* Core Accent Colors */
    --accent-color: #ef4444; /* Crimson Red */
    --accent-hover: #dc2626;
    --success-color: #3b82f6; /* Tech Blue */
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Layout Constants */
    --navbar-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme (High-End Deep Cyber Obsidian Black, Neon Crimson & Cyan Blue) */
[data-theme="dark"] {
    --bg-primary: #040406;
    --bg-secondary: #0a0a0f;
    --bg-tertiary: #111119;
    --bg-glass: rgba(10, 10, 15, 0.9);
    --border-glass: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(255, 255, 255, 0.01);
    --hover-shadow: 0 20px 40px rgba(255, 0, 85, 0.16), 0 1px 5px rgba(0, 112, 243, 0.06);
    --border-color: #1a1a26;
    --gradient-primary: linear-gradient(135deg, #ff0055 0%, #0070f3 100%);
    --gradient-accent: linear-gradient(135deg, #ff003c 0%, #ff5252 100%);
    --gradient-dark: linear-gradient(135deg, #010103 0%, #08080f 100%);
    --gradient-success: linear-gradient(135deg, #00f0ff 0%, #0070f3 100%);
    --accent-color: #ff2d55;
    --accent-hover: #ff003c;
    --success-color: #00e5ff;
}

/* ==========================================================================
   GLOBAL RESET & STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

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

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-smooth);
}

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

/* Modern Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ==========================================================================
   PREMIUM UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 117, 140, 0.6);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
    height: var(--navbar-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 70px;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: inline-block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-smooth);
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.theme-toggle-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at 10% 20%, rgba(255, 154, 158, 0.15) 0%, rgba(254, 207, 239, 0.08) 90%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 117, 140, 0.12) 0%, transparent 70%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat-item h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual-card {
    width: 380px;
    height: 380px;
    background: var(--bg-glass);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-glass);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.hero-image-placeholder {
    width: 80%;
    height: 80%;
    border-radius: var(--border-radius-md);
    background: var(--gradient-primary);
    opacity: 0.85;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-accent);
    filter: blur(40px);
    opacity: 0.2;
    z-index: 0;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: -20px;
    left: -20px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -40px;
    right: -40px;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

/* ==========================================================================
   TOOLS SECTION
   ========================================================================== */
.tools-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.2);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tool-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.tool-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.tool-card:hover .tool-icon-wrapper {
    background: var(--gradient-accent);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.tool-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-action-link {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-card:hover .tool-action-link {
    gap: 8px;
}

.view-all-wrapper {
    text-align: center;
}

/* ==========================================================================
   HOW IT WORKS & BENEFITS SECTIONS
   ========================================================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
    line-height: 1;
    margin-bottom: -20px;
}

.step-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Benefits & Choose Us */
.benefits-section {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.benefit-card {
    padding: 40px;
    display: flex;
    gap: 24px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.benefit-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   LONG FORM SEO CONTENT & FAQ
   ========================================================================== */
.seo-content-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.seo-rich-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

.seo-article {
    color: var(--text-secondary);
}

.seo-article h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    margin-top: 36px;
}

.seo-article h2:first-of-type {
    margin-top: 0;
}

.seo-article p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.seo-article ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.seo-article li {
    margin-bottom: 8px;
}

/* FAQ Accordion */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.faq-icon-chevron {
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

.faq-item.active .faq-icon-chevron {
    transform: rotate(180deg);
    color: var(--accent-color);
}

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

/* ==========================================================================
   TESTIMONIALS & CTA
   ========================================================================== */
.testimonials-section {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    padding: 40px 30px;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.user-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Call to action */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-accent);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
}

.cta-section .btn-secondary {
    background: white;
    color: var(--accent-color);
}

.cta-section .btn-secondary:hover {
    background: var(--bg-tertiary);
}

/* ==========================================================================
   FOOTER DESIGN
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-top: 16px;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 12px;
}

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

.social-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ==========================================================================
   STATIC SUB-PAGES WRAPPERS
   ========================================================================== */
.page-hero {
    padding: 140px 0 60px;
    background: radial-gradient(circle at 10% 20%, rgba(255, 154, 158, 0.1) 0%, rgba(254, 207, 239, 0.05) 90%);
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content-wrapper {
    padding: 80px 0;
}

.static-rich-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.static-rich-content h2, .static-rich-content h3 {
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
}

.static-rich-content p {
    margin-bottom: 20px;
    font-size: 1.02rem;
}

/* Contact Form UI */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-secondary);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 117, 140, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    padding: 30px;
    display: flex;
    gap: 20px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    background: var(--bg-tertiary);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-text h4 {
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   MODAL TOOL ENGINE UI
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 6, 18, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title-wrapper h3 {
    font-size: 1.4rem;
}

.modal-title-icon {
    color: var(--accent-color);
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.modal-close-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Dropzone Styles */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-primary);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent-color);
    background: var(--bg-tertiary);
}

.dropzone-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

.dropzone h4 {
    font-size: 1.15rem;
}

.dropzone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-input {
    display: none;
}

/* Tool Execution Workspace */
.tool-workspace {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.workspace-preview {
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    min-height: 300px;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.preview-img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Cropper specific resize overrides */
.cropper-container {
    max-height: 400px;
}

.workspace-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-card {
    padding: 20px;
}

.control-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.control-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.control-row {
    display: flex;
    gap: 12px;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-wrapper input[type="range"] {
    flex-grow: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.slider-value {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

.action-row {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

/* Loading & Toast States */
.loader-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--bg-secondary), 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
    border-radius: var(--border-radius-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loader-wrapper.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    animation: slideIn 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--accent-color);
}

.toast-success { border-left-color: var(--success-color); }
.toast-error { border-left-color: var(--danger-color); }
.toast-warning { border-left-color: var(--warning-color); }

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

/* Scroll-to-Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.3);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 117, 140, 0.5);
}

/* Bulk Queue List */
.bulk-queue {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 10px;
    background: var(--bg-primary);
}

.bulk-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

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

.bulk-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bulk-item-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    font-weight: 700;
}

.bulk-item-status.success {
    background: rgba(11, 163, 96, 0.15);
    color: var(--success-color);
}

/* ==========================================================================
   RESPONSIVENESS / BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content p {
        margin: 0 auto 36px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        margin-top: 20px;
    }
    .seo-rich-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
        align-items: flex-start;
        box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    }
    .nav-menu.active {
        left: 0;
    }
    .hamburger {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .tool-workspace {
        grid-template-columns: 1fr;
    }
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Checkerboard transparency pattern for high-fidelity browser keying previews */
.transparency-checkerboard {
    background-image: linear-gradient(45deg, rgba(0,0,0,0.08) 25%, transparent 25%), 
                      linear-gradient(-45deg, rgba(0,0,0,0.08) 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.08) 75%), 
                      linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.08) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #f1f5f9;
}
