/* Clean Professional Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional color scheme */
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    /* Clean backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #1e293b;
    --bg-darker: #0f172a;
    --bg-card: #ffffff;

    /* Typography colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Proper spacing system */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', Consolas, 'Courier New', monospace;

    /* Transitions */
    --transition: 0.15s ease-in-out;
    --transition-slow: 0.3s ease-in-out;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border radius */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
}

/* Base styles */
html {
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body {
   background: radial-gradient(circle at center, #0b132b 0%, #060a18 100%);;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: rgb(255, 136, 0);
    margin-bottom: var(--space-4);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: var(--space-6); }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); margin-bottom: var(--space-5); }
h3 { font-size: clamp(1.0rem, 2.5vw, 1.0rem); margin-bottom: var(--space-4); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: var(--space-3); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Header */
.header {
   background: linear-gradient(135deg, #7ab3ec 0%,100%);
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: #eff6ff;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.dropdown-item:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.nav-badges {
    display: flex;
    gap: var(--space-3);
}

.badge {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: #dbeafe;
    color: var(--primary-color);
}

.badge-secondary {
    background-color: #f3e8ff;
    color: #7c3aed;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--text-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: 1.0rem;
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

/* Hero section */
.hero {
    padding: calc(20px + var(--space-20)) 0 var(--space-20);
  background: radial-gradient(circle at center, #0b132b 0%, #060a18 100%);



}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 2rem);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.0rem;
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.hero-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero-info p {
    margin-bottom: var(--space-2);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.floating-card {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
}

.card-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

/* Sections */
.services-section,
.content-section {
    padding: var(--space-20) 0;
}

.content-section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: var(--space-5);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

.services-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.service-icon {
    margin-bottom: var(--space-6);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-title {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.visual-placeholder {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: var(--space-4);
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.875rem;
}

/* Page header */
.page-header {
    padding: calc(80px + var(--space-16)) 0 var(--space-16);
    background: radial-gradient(circle at center, #0b132b 0%, #060a18 100%);
    text-align: center;
}

.page-title {
    margin-bottom: var(--space-6);
}

/* Content cards */
.content-card {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    transition: all var(--transition);
}

.content-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer-title {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.footer-heading {
    font-size: 1.125rem;
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.footer-description {
    color: #94a3b8;
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: #94a3b8;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-contact {
    color: #94a3b8;
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.footer-contact strong {
    color: var(--text-white);
}

.footer-contact a {
    color: var(--primary-color);
}

.footer-legal {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: var(--space-4);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    color: #64748b;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-links a {
    color: #94a3b8;
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--text-white);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid #e2e8f0;
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform var(--transition);
    z-index: 1000;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.cookie-content p {
    margin: 0;
    color: var(--text-secondary);
}

.cookie-buttons {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-secondary);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-down"] { transform: translateY(-30px); }

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-slow);
        gap: var(--space-6);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-badges {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-secondary);
        margin-top: var(--space-2);
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .services-grid,
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .cookie-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(80px + var(--space-12)) 0 var(--space-12);
    }

    .services-section,
    .content-section {
        padding: var(--space-12) 0;
    }

    .service-card,
    .floating-card {
        padding: var(--space-6);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animated-image {
  animation: float 4s ease-in-out infinite;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

        :root {
            --primary-red: #e5322d; --primary-red-dark: #c42a25; --text-dark: #383e45; --text-light: #878d95;
            --border-color: #e8e8f0; --background-light: #f8f8fa; --background-white: #ffffff;
            --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --header-height: 70px;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        
        .container { max-width: 1200px; margin: 0 auto; padding: 20px; }
        .main-header { background-color: var(--background-white); border-bottom: 1px solid var(--border-color); height: var(--header-height); position: sticky; top: 0; z-index: 999; transition: box-shadow 0.3s ease; }
        .main-header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
        .nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        .logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-red); text-decoration: none; }
        /* .main-nav ul { list-style: none; display: flex; gap: 30px; }
        .main-nav a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: color 0.2s ease; }
        .main-nav a:hover { color: var(--primary-red); } */
        .hamburger { display: none; cursor: pointer; }
        .hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-dark); transition: all 0.3s ease-in-out; }
        .hero-section { text-align: center; padding: 80px 20px 60px; background-image: linear-gradient(180deg, var(--background-white) 0%, var(--background-light) 100%); }
        .hero-section h1 { font-size: 2.8rem; margin-bottom: 1rem; font-weight: 700; }
        .hero-section p { font-size: 1.1rem; color: var(--text-light); max-width: 800px; margin: 0 auto; }
        .ad-placeholder { background: #f0f0f0; border: 1px dashed #ccc; display: flex; align-items: center; justify-content: center; color: #999; font-size: 0.9rem; margin: 40px auto; }
        .ad-banner-top { width: 728px; height: 90px; max-width: 100%; }
        .ad-modal-sidebar { width: 200px; height: 400px; margin-left: 20px; flex-shrink: 0; }
        .tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
        .tool-card { background-color: var(--background-white); border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; text-align: center; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative; overflow: hidden; }
        .tool-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); border-color: var(--primary-red); }
        .tool-card .icon { width: 64px; height: 64px; margin: 0 auto 15px auto; display: flex; align-items: center; justify-content: center; font-size: 2.5em; font-weight: bold; }
        .tool-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-dark); }
        .tool-card p { font-size: 0.9rem; color: var(--text-light); min-height: 54px; }
        .new-badge { position: absolute; top: 10px; right: -35px; background-color: var(--primary-red); color: white; padding: 2px 30px; font-size: 0.8rem; font-weight: bold; transform: rotate(45deg); }
        .article-section { background-color: var(--background-white); padding: 60px 0; margin-top: 60px; border-top: 1px solid var(--border-color); }
        .article-content { max-width: 800px; margin: 0 auto; }
        .article-content h2 { font-size: 2rem; margin-bottom: 20px; color: var(--primary-red); }
        .article-content h3 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 15px; }
        .article-content p, .article-content li { margin-bottom: 15px; line-height: 1.7; }
        .article-content ul { list-style-position: inside; padding-left: 20px; }
        .article-content a { color: var(--primary-red); text-decoration: none; }
        .article-content a:hover { text-decoration: underline; }
        .main-footer {   background: radial-gradient(circle at center, #0b132b 0%, #060a18 100%); color: #ccc; padding: 50px 0 20px 0; margin-top: 60px; }
        .footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
        .footer-col h4 { color: var(--background-white); margin-bottom: 15px; font-size: 1.1rem; }
        .footer-col ul { list-style: none; }
        .footer-col li { margin-bottom: 10px; }
        .footer-col a { color: #ccc; text-decoration: none; transition: color 0.2s ease; }
        .footer-col a:hover { color: var(--background-white); }
        .copyright { text-align: center; border-top: 1px solid #555; padding-top: 20px; margin-top: 40px; font-size: 0.9rem; }
        .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
        .modal.active { display: flex; }
        .modal-content-wrapper { display: flex; align-items: flex-start; }
        .modal-content { background-color: var(--background-light); margin: auto; padding: 30px; border-radius: 8px; width: 95%; max-width: 800px; max-height: 90vh; text-align: center; position: relative; animation: fadeIn 0.3s ease; display: flex; flex-direction: column; flex-grow: 1; }
        .modal-body { overflow-y: auto; padding-right: 15px; }
        @keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
        .close-button { position: absolute; top: 15px; right: 15px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; z-index: 10; }
        .close-button:hover { color: black; }
        .modal h2 { margin-bottom: 20px; }
        #drop-zone { border: 2px dashed var(--border-color); border-radius: 8px; padding: 50px; margin-bottom: 20px; cursor: pointer; transition: background-color 0.2s ease; }
        #drop-zone.dragover { background-color: #e9f5ff; border-color: #007bff; }
        #drop-zone p { font-size: 1.1rem; color: var(--text-light); }
        #file-input { display: none; }
        .select-file-btn { background-color: var(--primary-red); color: white; padding: 12px 25px; border: none; border-radius: 5px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: background-color 0.2s ease; }
        .select-file-btn:hover { background-color: var(--primary-red-dark); }
        #file-list { list-style: none; margin-top: 20px; text-align: left; }
        #file-list li { background: white; padding: 10px; border: 1px solid var(--border-color); border-radius: 5px; margin-bottom: 5px; display: flex; justify-content: space-between; align-items: center; }
        #tool-options { margin: 20px 0; text-align: left; }
        #tool-options label, #tool-options .disclaimer { display: block; margin-bottom: 5px; font-weight: bold; }
        #tool-options .disclaimer { font-weight: normal; font-size: 0.9em; color: var(--text-light); background: #fffbe6; border: 1px solid #ffe58f; padding: 10px; border-radius: 4px; }
        #tool-options input, #tool-options select, #tool-options textarea { width: 100%; padding: 8px; border: 1px solid var(--border-color); border-radius: 4px; margin-top: 5px; }
        #process-btn { width: 100%; background-color: var(--primary-red); color: white; padding: 15px; border: none; border-radius: 5px; font-size: 1.2rem; font-weight: bold; cursor: pointer; margin-top: 20px; transition: background-color 0.2s ease; }
        #process-btn:hover { background-color: var(--primary-red-dark); }
        #process-btn:disabled { background-color: #ccc; cursor: not-allowed; }
        .loader-container { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.9); z-index: 1001; align-items: center; justify-content: center; flex-direction: column; border-radius: 8px; }
        .loader-container.active { display: flex; }
        .loader { border: 8px solid #f3f3f3; border-top: 8px solid var(--primary-red); border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; }
        #loader-text { margin-top: 15px; font-weight: bold; color: var(--text-dark); }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        #output-area { margin-top: 20px; text-align: left; }
        #output-area a { display: block; background-color: #28a745; color: white; text-align: center; padding: 10px; border-radius: 5px; text-decoration: none; margin-bottom: 10px; font-weight: bold; }
        #output-area img { max-width: 100%; border: 1px solid var(--border-color); margin-bottom: 10px; }
        #page-organizer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; border: 1px solid var(--border-color); padding: 10px; background: white; }
        .page-thumbnail { position: relative; border: 1px solid #ccc; cursor: grab; } .page-thumbnail.dragging { opacity: 0.5; }
        .page-thumbnail img { display: block; width: 100px; height: auto; pointer-events: none; }
        .page-thumbnail .page-number { position: absolute; bottom: 2px; right: 4px; background: rgba(0,0,0,0.5); color: white; border-radius: 3px; font-size: 10px; padding: 1px 3px; }
        .page-thumbnail .delete-page { position: absolute; top: -5px; right: -5px; background: var(--primary-red); color: white; border-radius: 50%; width: 18px; height: 18px; text-align: center; line-height: 18px; cursor: pointer; font-size: 12px; }
        #editor-container { position: relative; width: 100%; height: 500px; border: 1px solid var(--border-color); }
        #editor-canvas { width: 100%; height: 100%; }
        #editor-controls { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
        #editor-controls button, #editor-controls input { padding: 5px 10px; }
        .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
        .reveal.active { opacity: 1; transform: translateY(0); }
        @media (max-width: 768px) {
            /* .main-nav { position: fixed; left: -100%; top: var(--header-height); background-color: var(--background-white); width: 100%; height: calc(100vh - var(--header-height)); text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); }
            .main-nav.active { left: 0; }
            .main-nav ul { flex-direction: column; padding-top: 40px; gap: 40px; } */
            /* .hamburger { display: block; }
            .hamburger.active .bar:nth-child(2) { opacity: 0; }
            .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
            .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } */
            .hero-section h1 { font-size: 2.2rem; }
            .tools-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
            .ad-modal-sidebar { display: none; }
        }
        @media (max-width: 480px) {
            .hero-section h1 { font-size: 1.8rem; }
            .tools-grid { grid-template-columns: 1fr; }
            .modal-content { padding: 20px; }
        }
    /* === Fancy TechSoft Loader === */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0b132b 0%, #060a18 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo img {
  width: 100px;
  height: auto;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 12px #00E5FF);
}

.loader-text {
  color: #00E5FF;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  margin-top: 15px;
  letter-spacing: 1px;
}

.dots::after {
  content: '';
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px #00E5FF); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 25px #00F5A0); }
}


