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

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #10b981;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --max-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --dark-navy: #010330;
    --dark-purple: #6e40c9;
    --light-purple: #8b5cf6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-brand .logo {
    text-decoration: none;
    color: var(--primary-color);
}

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    background: #010330;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    color: white;
    text-align: left;
    backdrop-filter: blur(10px);
}

.hero-form-wrapper .form-group label {
    color: rgba(255, 255, 255, 0.9);
}

.hero-form-wrapper .form-group input,
.hero-form-wrapper .form-group select {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-form-wrapper .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-form-wrapper .form-group input:focus,
.hero-form-wrapper .form-group select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.hero-form-wrapper .form-group small {
    color: rgba(255, 255, 255, 0.7);
}

.hero-form-wrapper #result-section {
    margin-top: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: white;
}

.hero-form-wrapper #result-section h3 {
    color: white;
}

.hero-form-wrapper #status-message.success {
    background-color: rgba(35, 134, 54, 0.2);
    color: #4ade80;
    border: 1px solid rgba(35, 134, 54, 0.3);
}

.hero-form-wrapper #status-message.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.hero-form-wrapper #status-message.info {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Page Header */
.page-header {
    background-color: var(--bg-light);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* PDF Tool Section */
.pdf-tool-section {
    padding: 3rem 0;
}

.pdf-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-group .required {
    color: var(--error-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.margin-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.advanced-options {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

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

.watermark-options,
.header-footer-options {
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem; /* Space above buttons on desktop */
    margin-bottom: 0; /* No bottom margin */
}

.form-actions .btn {
    flex: 1;
}

/* Desktop: URL input first, then buttons below */
@media (min-width: 769px) {
    .pdf-form .url-input-group {
        order: 1; /* URL input appears first on desktop */
    }

    .pdf-form .form-actions {
        order: 2; /* Buttons appear after input on desktop */
        flex-direction: row; /* Buttons side by side on desktop */
    }

    .pdf-form #advanced-options {
        order: 3; /* Advanced options appear last */
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #238636;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #2ea043;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary .options-icon {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    transition: transform 0.3s;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Result Section */
.result-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.result-content h3 {
    margin-bottom: 1rem;
}

#status-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

#status-message.success {
    background-color: #d1fae5;
    color: #065f46;
}

#status-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

#status-message.info {
    background-color: #dbeafe;
    color: #1e40af;
}

#download-section {
    text-align: center;
    margin-top: 1.5rem;
}

.download-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-actions .btn {
    min-width: 150px;
}

.conversion-loader {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.conversion-loader .spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.conversion-loader span {
    font-size: 1rem;
}

#status-message.success p {
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #010330;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    color: var(--text-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.feature-card h3 {
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
    background-color: #010330;
}

.how-it-works-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: white;
}

.how-it-works-section .step h3 {
    color: white;
}

.how-it-works-section .step p {
    color: rgba(255, 255, 255, 0.7);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--light-purple) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(110, 64, 201, 0.3);
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
}

/* Steps Guide Section */
.steps-guide-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.steps-guide-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-color);
}

.steps-guide {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.guide-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.guide-step-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    margin-bottom: 1rem;
}

.guide-step-content {
    flex: 1;
    width: 100%;
}

.guide-step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.guide-step-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.benefits-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-card {
    padding: 2.5rem 3rem;
    background: white;
    border-radius: 16px;
    text-align: left;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.benefit-icon {
    font-size: 3.5rem;
    display: inline-block;
    transform: scale(1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card-content {
    flex: 1;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* More About Section */
.more-about-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.more-about-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-item {
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.about-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 0 12px 0 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-item:hover::after {
    opacity: 1;
}

.about-item:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
}

.about-icon {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.about-item:hover .about-icon {
    transform: scale(1.15);
}

.about-item h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.about-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Browsers Section */
.browsers-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.browsers-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.browsers-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.browsers-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.browser-item {
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    position: relative;
}

.browser-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.browser-item:hover::before {
    opacity: 1;
}

.browser-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.browser-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.browser-item:hover .browser-icon {
    transform: scale(1.2) rotate(10deg);
}

.browser-item h3 {
    font-size: 1.125rem;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.browser-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-item:hover::before {
    transform: scaleY(1);
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
    border-color: var(--primary-color);
}

.faq-question {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-left: 1.5rem;
}

.faq-question::before {
    content: '❓';
    position: absolute;
    left: 0;
    font-size: 1.25rem;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    padding-left: 1.5rem;
}

/* Blog Section */
.blog-section {
    padding: 3rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.blog-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.blog-card h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Content Section */
.content-section {
    padding: 3rem 0;
}

.legal-content,
.about-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-intro {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content section,
.about-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2,
.about-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-content h3,
.about-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content ul,
.about-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li,
.about-content li {
    margin-bottom: 0.5rem;
}

.legal-content a,
.about-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover,
.about-content a:hover {
    text-decoration: underline;
}

/* Contact Page */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-method {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.contact-method h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-method p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-form-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.contact-form {
    max-width: 600px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.value-item {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.value-item h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.cookie-table tr:hover {
    background-color: var(--bg-light);
}

/* Blog Post */
.blog-post {
    padding: 3rem 0;
}

.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post-image {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.blog-post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.blog-post-content p {
    margin-bottom: 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Footer */
.site-footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Error Section */
.error-section {
    padding: 4rem 0;
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .navbar-menu.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .margin-inputs {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-actions {
        flex-direction: column;
        margin-top: 1.5rem; /* Space above buttons on mobile */
        margin-bottom: 0; /* No bottom margin on mobile */
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Mobile: URL input first, then convert button, then options button */
    .pdf-form .url-input-group {
        order: 1; /* URL input first */
    }

    .pdf-form .form-actions {
        order: 2; /* Buttons container second */
    }

    .pdf-form .form-actions #convert-btn {
        order: 1; /* Convert button first in buttons container */
    }

    .pdf-form .form-actions #options-btn {
        order: 2; /* Options button second in buttons container */
    }

    .pdf-form #advanced-options {
        order: 3; /* Advanced options last */
    }

    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-form-wrapper {
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .steps-guide {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .guide-step {
        padding: 1.5rem 1rem;
    }

    .guide-step-number {
        width: 60px;
        height: 60px;
        font-size: 0.875rem;
    }

    .guide-step-content h3 {
        font-size: 1.25rem;
    }

    .guide-step-content p {
        font-size: 0.9rem;
    }

    .steps-guide-section h2 {
        font-size: 1.75rem;
    }

    .benefit-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .benefit-icon {
        margin-bottom: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .browsers-grid {
        gap: 1.5rem;
    }

    .browser-item {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }

    .faq-item {
        padding: 1.5rem;
    }

    .faq-question {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .blog-post-header h1 {
        font-size: 2rem;
    }

    .steps-guide {
        grid-template-columns: 1fr;
    }

    .browser-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

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

/* Hero section specific status messages */
.hero-form-wrapper #status-message.success {
    background-color: rgba(35, 134, 54, 0.2);
    color: #4ade80;
    border: 1px solid rgba(35, 134, 54, 0.3);
}

.hero-form-wrapper #status-message.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.hero-form-wrapper #status-message.info {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-form-wrapper .conversion-loader .spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

