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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo a {
    color: white;
    text-decoration: none;
}

.nav-logo i {
    margin-right: 10px;
    color: #fff;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #ffd700;
    color: #333;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Tools Section */
.tools-section {
    padding: 80px 0;
    background: white;
}

.tools-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #e74c3c;
}

.tool-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.tool-card p {
    color: #666;
    line-height: 1.6;
}

/* Tool Interface */
.tool-interface {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 60vh;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
    will-change: opacity;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e74c3c;
}

.tool-header h2 {
    color: #e74c3c;
    font-size: 2rem;
}

.close-tool {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.close-tool:hover {
    background: #c0392b;
}

.tool-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Upload Area */
.upload-area {
    margin-bottom: 2rem;
}

.upload-zone {
    border: 3px dashed #e74c3c;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    background: #fff5f5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #c0392b;
    background: #ffe6e6;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.upload-zone h3 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.upload-zone p {
    color: #666;
    margin-bottom: 1.5rem;
}

.browse-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.browse-btn:hover {
    background: #c0392b;
}

/* File List */
.file-list {
    margin-bottom: 2rem;
}

.file-list h3 {
    color: #333;
    margin-bottom: 1rem;
}

.file-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 4px solid #e74c3c;
}

.file-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    color: #e74c3c;
    font-size: 1.5rem;
}

.file-details h4 {
    color: #333;
    margin-bottom: 0.25rem;
}

.file-details p {
    color: #666;
    font-size: 0.9rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.file-action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.file-action-btn:hover {
    color: #e74c3c;
    background: #f0f0f0;
}

.preview-btn {
    color: #27ae60;
}

.preview-btn:hover {
    color: #219a52;
    background: #f0f0f0;
}

/* File Preview */
.file-preview {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: all 0.3s ease;
}

.file-preview canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.preview-page-info {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PDF Navigation Controls */
.pdf-nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    width: 100%;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pdf-nav-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.pdf-nav-btn:hover:not(:disabled) {
    background: #c0392b;
}

.pdf-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pdf-page-display {
    font-weight: 500;
    color: #333;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Image Preview for Image to PDF */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 150px;
    transition: transform 0.2s ease;
}

.image-preview-item:hover {
    transform: scale(1.05);
}

.image-preview-img {
    max-width: 90%; /* Scaled down by 10% for local testing */
    height: auto;
    display: block;
    border-radius: 2px;
    margin: 0 auto; /* Center the image horizontally */
}

.image-preview-name {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Tool Options */
.tool-options {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.tool-options h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.option-group input,
.option-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.option-group input:focus,
.option-group select:focus {
    outline: none;
    border-color: #e74c3c;
}

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

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

/* Process Section */
.process-section {
    text-align: center;
    margin-bottom: 2rem;
}

.process-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.process-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.process-btn.loading {
    pointer-events: none;
}

.process-btn.loading i {
    animation: spin 1s linear infinite;
}

/* Results Section */
.results-section {
    border-top: 2px solid #e74c3c;
    padding-top: 2rem;
}

.results-section h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #27ae60;
}

.result-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.result-icon {
    color: #27ae60;
    font-size: 1.5rem;
}

.result-details {
    flex: 1;
}

.result-preview {
    margin: 0 1rem;
    display: flex;
    align-items: center;
}

.result-preview-img {
    max-height: 60px;
    max-width: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.download-btn:hover {
    background: #219a52;
}

/* PDF Preview Modal */
.pdf-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-preview-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pdf-preview-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.close-preview-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-preview-btn:hover {
    color: #e74c3c;
    background: #f0f0f0;
}

.pdf-preview-body {
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    background: #f0f0f0;
}

.pdf-page-info {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pdf-pages-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    align-items: center;
}

.pdf-page-container {
    background: white;
    border-radius: 5px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: fit-content;
    max-width: 100%;
    position: relative;
}

.pdf-page-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pdf-page-canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .pdf-preview-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .pdf-preview-header h3 {
        font-size: 1rem;
        max-width: 70%;
    }
    
    .pdf-page-container {
        padding: 0.5rem;
    }
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.about-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.use-cases {
    margin-top: 4rem;
    text-align: left;
}

.use-cases h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

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

.use-case {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
}

.use-case h4 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .file-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .use-case-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility Styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus indicators */
*:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

.nav-link:focus,
.cta-button:focus,
.tool-card:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Error and Success States */
.error {
    color: #e74c3c;
    background: #fff5f5;
    border: 1px solid #e74c3c;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.success {
    color: #27ae60;
    background: #f0fff4;
    border: 1px solid #27ae60;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .tools-section {
        background: #2d2d2d;
    }
    
    .tool-card {
        background: #3a3a3a;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .tool-card h3 {
        color: #fff;
    }
    
    .tool-card p {
        color: #ccc;
    }
    
    .about-section {
        background: #2d2d2d;
    }
    
    .about-section h2 {
        color: #fff;
    }
    
    .about-section p {
        color: #ccc;
    }
    
    .feature-card {
        background: #3a3a3a;
        color: #e0e0e0;
    }
    
    .use-case {
        background: #3a3a3a;
        color: #e0e0e0;
    }
}

/* Guides Section */
.guides-section {
    padding: 80px 0;
    background: #fff;
}

.guides-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.1rem;
}

.guides-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.guide-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
}

.guide-card h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.guide-content {
    color: #333;
}

.guide-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.guide-content ol, 
.guide-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.guide-content ul li {
    list-style-type: disc;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

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

.faq-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
}

.faq-question {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #e74c3c;
}

.faq-question:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

.faq-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #e74c3c;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="false"] .faq-indicator {
    transform: translateY(-50%) rotate(0deg);
}

.faq-question[aria-expanded="true"] .faq-indicator {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    color: #555;
    line-height: 1.8;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.faq-answer-hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

/* Ad Container Styles */
.ad-container {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
}

.ad-label {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .guide-card,
    .faq-item {
        padding: 1.5rem;
    }
    
    .guides-section h2,
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .guide-card h3 {
        font-size: 1.3rem;
    }
    
    .faq-question {
        font-size: 1.2rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
}

.contact-item i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
}

.contact-item a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #e74c3c;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.submit-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

/* Content Pages (Privacy Policy, Terms of Service) */
.content-section {
    padding: 120px 0 60px;
    background: #fff;
}

.content-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
}

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

.policy-content h2 {
    color: #e74c3c;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.policy-content p, 
.policy-content ul, 
.policy-content ol {
    margin-bottom: 1.5rem;
    color: #333;
}

.policy-content ul, 
.policy-content ol {
    margin-left: 2rem;
}

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

.policy-content a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-content a:hover {
    color: #c0392b;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .content-section {
        padding: 100px 0 40px;
    }
    
    .content-section h1 {
        font-size: 2rem;
    }
    
    .policy-content h2 {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .tool-interface,
    footer,
    .ad-container {
        display: none;
    }
    
    .hero {
        margin-top: 0;
        padding: 2rem 0;
    }
    
    .tools-section,
    .guides-section,
    .faq-section,
    .content-section {
        padding: 2rem 0;
    }
}
