/* ========================================
   Professional Website - Mobile-First CSS
   ======================================== */

/* Performance optimizations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimize font loading */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
}

:root {
    /* Light Theme Colors - Professional Teal Business Theme */
    --primary-color: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --secondary-color: #dc2626;
    --accent-color: #f59e0b;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --bg-tertiary: #374151;
    
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-tertiary: #9CA3AF;
    
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main, .container {
    flex: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar, nav {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .navbar,
[data-theme="light"] nav {
    background-color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .navbar,
[data-theme="dark"] nav {
    background-color: rgba(17, 24, 39, 0.95);
}

.navbar .container,
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand,
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-brand i,
.logo i {
    font-size: 28px;
}

.nav-menu,
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links li {
    list-style: none;
}

.nav-link,
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active,
.nav-links a:hover {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-theme {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-theme:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.lang-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .navbar .container,
    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .nav-brand {
        order: 1;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        transform: translateY(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.mobile-open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
    
    .nav-menu .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        display: block;
    }
    
    .nav-menu .nav-link:hover {
        background-color: var(--bg-secondary);
    }
    
    .nav-actions {
        order: 2;
        gap: 8px;
        margin-left: auto;
        margin-right: 12px;
        z-index: 1001;
        position: relative;
    }
    
    /* Hide non-essential items on mobile */
    .nav-actions .lang-select,
    .nav-actions .btn-outline,
    .nav-actions .btn-primary {
        display: none;
    }
    
    /* Only show theme toggle on mobile navbar */
    .nav-actions .btn-theme {
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-stats .stat {
        min-width: 100px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Get Started button in navbar - improved styling */
.nav-actions .btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-actions .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-cta .btn-outline {
    border-color: white;
    color: white;
}

.hero-cta .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.stat h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat p {
    font-size: 16px;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon i {
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features Row - 4 columns layout */
.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.features-row .feature-card {
    text-align: center;
}

.features-row .feature-icon {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-row .feature-icon svg {
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.12));
}

.features-row .feature-card:hover .feature-icon svg {
    transform: scale(1.08);
    filter: drop-shadow(0 14px 30px rgba(0,0,0,0.16));
}

.features-row .feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.features-row .feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive - 2 columns on tablet */
@media (max-width: 992px) {
    .features-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Responsive - 1 column on mobile */
@media (max-width: 576px) {
    .features-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Tools Section */
.tools {
    padding: 100px 0;
}

.tools-categories {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 24px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    background-color: var(--bg-primary);
    padding: 32px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.tool-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    width: 56px;
    height: 56px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tool-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.tool-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tool-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tool-link:hover {
    gap: 12px;
}

/* Replace emoji checkmarks with SVG icons */
.feature-list li::before,
li[class*="check"]::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23059669"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Ensure footer links do not have tick icons */
.footer-col ul li::before,
.footer-col li::before,
footer ul li::before,
footer li::before {
    content: none !important;
    display: none !important;
    background-image: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

/* Check icon span class */
.check-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23059669"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Hide actual emoji characters */
li::marker {
    content: "" !important;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.price {
    display: flex;
    align-items: baseline;
    margin-bottom: 32px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
}

.amount {
    font-size: 56px;
    font-weight: 700;
}

.period {
    font-size: 16px;
    color: var(--text-secondary);
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
}

.features-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-list i {
    font-size: 16px;
}

.features-list .fa-check {
    color: var(--secondary-color);
}

.features-list .fa-times {
    color: var(--text-tertiary);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* ========================================
   TOOL-SPECIFIC PROFESSIONAL STYLING
   ======================================== */

/* Tool Container */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.tool-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control, 
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
    background: var(--bg-secondary);
}

.form-control:hover,
input:hover,
textarea:hover,
select:hover {
    border-color: var(--primary-light);
}

/* Textarea Specific */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

textarea.large {
    min-height: 200px;
}

/* Select Dropdown */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* File Upload Drop Zone - Centered & Modern */
.drop-zone, .file-upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.drop-zone:hover,
.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(5, 150, 105, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.15);
}

.drop-zone.drag-over,
.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(5, 150, 105, 0.1);
    border-style: solid;
    transform: scale(1.02);
}

.drop-zone.file-uploaded,
.file-upload-area.file-uploaded {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-style: solid;
}

.drop-zone i,
.file-upload-area i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.drop-zone:hover i,
.file-upload-area:hover i {
    transform: translateY(-4px);
}

.drop-zone h3,
.file-upload-area h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.drop-zone p,
.file-upload-area p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.drop-zone strong,
.file-upload-area strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Upload Success Indicator */
.upload-success-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.upload-success-indicator.show {
    display: flex;
}

.upload-success-indicator i {
    font-size: 1.5rem;
    animation: checkmark 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Modern Alert System */
.modern-alert {
    position: fixed;
    top: 24px;
    right: 24px;
    min-width: 320px;
    max-width: 500px;
    padding: 20px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: flex-start;
    gap: 16px;
    z-index: 10000;
    animation: alertSlideIn 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.modern-alert.show {
    display: flex;
}

.modern-alert.success {
    border-left-color: #10b981;
}

.modern-alert.error {
    border-left-color: #ef4444;
}

.modern-alert.warning {
    border-left-color: #f59e0b;
}

.modern-alert.info {
    border-left-color: #3b82f6;
}

.modern-alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.modern-alert.success .modern-alert-icon {
    color: #10b981;
}

.modern-alert.error .modern-alert-icon {
    color: #ef4444;
}

.modern-alert.warning .modern-alert-icon {
    color: #f59e0b;
}

.modern-alert.info .modern-alert-icon {
    color: #3b82f6;
}

.modern-alert-content {
    flex: 1;
}

.modern-alert-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modern-alert-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.modern-alert-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.modern-alert-close:hover {
    color: var(--text-primary);
}

@keyframes alertSlideIn {
    from { 
        opacity: 0; 
        transform: translateX(100px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

[data-theme="dark"] .modern-alert {
    background: var(--bg-secondary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* File Size Warning Modal */
.file-size-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.file-size-warning.show {
    display: flex;
}

.file-size-warning-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.file-size-warning-content i.warning-icon {
    font-size: 4rem;
    color: #f59e0b;
    margin-bottom: 16px;
}

.file-size-warning-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.file-size-warning-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.file-size-warning-content .btn-recommend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.file-size-warning-content .btn-recommend:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.file-size-warning-content .btn-close-warning {
    display: block;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 8px;
}

.file-size-warning-content .btn-close-warning:hover {
    color: var(--text-primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 24px 0;
}

/* Settings Panel */
.settings-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.settings-panel h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-panel h3 i {
    color: var(--primary-color);
}

.settings-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.settings-row:last-child {
    margin-bottom: 0;
}

/* Preview Section */
.preview-section {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-top: 24px;
    overflow: hidden;
}

.preview-header {
    background: var(--bg-secondary);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: between;
}

.preview-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.preview-content {
    padding: 24px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

/* Results Section */
.results-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.results-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-section h3 i {
    color: var(--secondary-color);
}

/* Template Buttons */
.template-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.template-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.template-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Feature List Styling */
.features-list {
    list-style: none;
    margin: 24px 0;
}

.features-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.features-list i {
    width: 20px;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Stats Display */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Loading States */
.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error States */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    color: #dc2626;
    margin: 16px 0;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    color: #16a34a;
    margin: 16px 0;
}

/* Dark Mode Adjustments for Tools */
[data-theme="dark"] .error-message {
    background: #431a1a;
    border-color: #7f1d1d;
    color: #fca5a5;
}

[data-theme="dark"] .success-message {
    background: #14532d;
    border-color: #166534;
    color: #86efac;
}

/* Responsive Design for Tools */
@media (max-width: 768px) {
    .tool-container {
        padding: 16px;
        margin: 16px;
    }
    
    .tool-header h1 {
        font-size: 2rem;
    }
    
    .button-group {
        justify-content: stretch;
    }
    
    .button-group .btn {
        flex: 1;
        min-width: 0;
    }
    
    .settings-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .template-buttons {
        flex-direction: column;
    }
    
    .template-btn {
        text-align: center;
    }
}

/* ======================================== */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* nav-menu is handled in mobile optimization section above */
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 32px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Universal Footer Fix */
html {
    height: 100%;
}

body {
    min-height: 100%;
}

footer[style*="margin-top"] {
    margin-top: auto !important;
}

/* ========================================
   TEXT SUMMARIZER SPECIFIC STYLES
   ======================================== */

.summarizer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.input-section,
.output-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.char-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
    background: var(--bg-tertiary);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(5, 150, 105, 0.05);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(5, 150, 105, 0.1);
}

.upload-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
}

.upload-area p {
    margin: 0;
    color: var(--text-secondary);
}

.upload-area strong {
    color: var(--primary-color);
}

.summarizer-grid textarea {
    width: 100%;
    min-height: 200px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.summarizer-grid textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.summarizer-grid textarea[readonly] {
    background: var(--bg-tertiary);
    cursor: default;
}

.summary-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.summary-length {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-length label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.summary-length select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    min-width: 140px;
}

.loading {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive for Text Summarizer */
@media (max-width: 768px) {
    .summarizer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .input-section,
    .output-section {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .upload-area {
        padding: 24px 16px;
    }

    .upload-icon {
        font-size: 1.5rem;
    }

    .summary-stats {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .stat-item {
        padding: 16px;
        background: var(--bg-secondary);
        border-radius: 6px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .summary-length {
        justify-content: space-between;
    }

    .summary-length select {
        min-width: auto;
        flex: 1;
        margin-left: 12px;
    }
}

/* ========================================
   BLOG CONSISTENCY OVERRIDES
   ======================================== */

/* Ensure all blog pages use consistent theme colors */
.blog-page,
.blog-article,
.blog-post {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Override any hardcoded blog colors */
.article-title,
.post-title {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Consistent CTA styling across all blog posts */
.cta-box,
[style*="background: linear-gradient"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    box-shadow: var(--shadow-lg);
}

/* Override any hardcoded button colors in blog posts */
.cta-box .btn,
.cta-box a[style*="color:"],
a[style*="color: #667eea"],
a[style*="color:#667eea"] {
    color: var(--primary-color) !important;
    border: 2px solid transparent;
    transition: var(--transition);
}

.cta-box .btn:hover,
.cta-box a[style*="color:"]:hover {
    border-color: var(--primary-light) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Blog navigation consistency */
.blog-page .nav-brand i {
    color: var(--primary-color) !important;
}

/* Blog header gradient text */
.blog-header h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Promotional Banner Styles - Global */
.promotional-banner {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.2);
    border: 1px solid rgba(5, 150, 105, 0.3);
    position: relative;
    overflow: hidden;
}

.promotional-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    pointer-events: none;
}

.promotional-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.promotional-icon {
    flex-shrink: 0;
}

.promotional-icon i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.promotional-text {
    flex: 1;
}

.promotional-text h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.promotional-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.promotional-action {
    flex-shrink: 0;
}

.btn-guide {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-guide:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-guide i {
    transition: transform 0.3s ease;
}

.btn-guide:hover i {
    transform: translateX(4px);
}

/* Responsive Design for Promotional Banner */
@media (max-width: 768px) {
    .promotional-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .promotional-icon i {
        font-size: 36px;
    }

    .promotional-text h3 {
        font-size: 1.2rem;
    }

    .btn-guide {
        padding: 10px 20px;
    }
}

/* Dark Mode Support for Promotional Banner */
[data-theme="dark"] .promotional-banner {
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
}

[data-theme="dark"] .promotional-text h3 {
    color: #f0f9ff;
}

[data-theme="dark"] .promotional-text p {
    color: #e0f2fe;
}
/* ========================================
   Enhanced Mobile Responsiveness
   ======================================== */

/* Mobile Touch-Friendly Buttons */
@media (max-width: 768px) {
    /* Minimum touch target size (44x44px recommended) */
    .btn, button, .category-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    /* Filter buttons - horizontal scroll on mobile */
    .tools-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 12px;
        margin: 0 -16px 30px;
        padding: 0 16px 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tools-categories::-webkit-scrollbar {
        display: none;
    }
    
    .category-btn {
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Tool cards - better mobile layout */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .tool-icon i {
        font-size: 22px;
    }
    
    .tool-card h3 {
        font-size: 18px;
    }
    
    /* Hero section mobile */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Tools page header */
    .tools {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Blog cards mobile */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Input fields mobile */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Dropzone mobile */
    .drop-zone {
        padding: 30px 20px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .category-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .tool-card {
        padding: 16px;
    }
    
    .tool-card h3 {
        font-size: 16px;
    }
    
    .tool-card p {
        font-size: 14px;
    }
    
    /* Stack button groups vertically */
    .button-group,
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .button-group .btn,
    .btn-group .btn {
        width: 100%;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 50px 0 30px;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        margin-bottom: 20px;
    }
}

/* Touch hover states - disable on touch devices */
@media (hover: none) and (pointer: coarse) {
    .tool-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .category-btn:hover:not(.active) {
        background-color: var(--bg-secondary);
        color: var(--text-secondary);
        border-color: var(--border-color);
    }
}