/* CSS Reset - Version 1.1 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles - Version 1.1 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    color: #3498db;
}

/* Mobile menu toggle - Version 1.1 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Animation for mobile menu toggle */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main navigation - Version 1.1 */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 1rem; /* Reduced from 1.5rem to 1rem */
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
}

.main-nav ul li a:hover {
    color: #3498db;
    background-color: #f8f9fa;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
}

/* Tools Section */
.tools-section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.tools-section .section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.tool-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.tool-card p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.upload-area {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 1.5rem 0;
    cursor: pointer;
    transition: background-color 0.3s;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.upload-area:hover {
    background-color: #f0f8ff;
}

.upload-area p {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
    text-align: center;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
}

.btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.tool-card .file-input {
    display: none;
}

.file-preview {
    display: none;
    margin-top: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e9ecef;
    box-sizing: border-box;
    width: 100%;
}

.file-preview .file-name {
    flex-grow: 1;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    text-align: left;
}

.file-preview .btn {
    padding: 5px 10px;
    font-size: 12px;
    min-width: auto;
}

.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    text-align: center;
}

.processing {
    opacity: 0.7;
    pointer-events: none;
}

.processing-bar {
    height: 5px;
    background: #3498db;
    width: 0%;
    transition: width 0.3s;
    margin: 10px 0;
}

/* Features Section */
.features-section {
    background-color: #fff;
    padding: 3rem 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature p {
    color: #666;
    margin-bottom: 1rem;
}

/* Blog Section */
.blog-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-post {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.blog-post h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.blog-post p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

/* Blog Specific Styles */
.content-section {
    padding: 3rem 0;
    background-color: #fff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-post {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.post-image {
    height: 200px;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    color: #3498db;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.post-title {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-title a:hover {
    color: #3498db;
}

.post-excerpt {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.9rem;
}

.sidebar {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.sidebar h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 0.8rem;
}

.sidebar-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.sidebar-links a:hover {
    color: #3498db;
}

.popular-posts .post {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.popular-posts .post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts .post-image {
    width: 60px;
    height: 60px;
    background-color: #3498db;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.popular-posts .post-content h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
}

.popular-posts .post-content h4 a {
    text-decoration: none;
    color: #2c3e50;
}

.popular-posts .post-meta {
    font-size: 0.8rem;
    color: #999;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.pagination a.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination a:hover:not(.active) {
    background-color: #f8f9fa;
}

/* Contact Page Styles */
.content-container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.contact-info h3 {
    margin-top: 0;
    color: #2c3e50;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h4 {
    margin-bottom: 0.5rem;
    color: #3498db;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* 404 Page Styles */
.error-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Ad Blocker Message */
#adblock-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    color: #3498db;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.footer-column ul li a:hover {
    color: #3498db;
}

.copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #34495e;
    text-align: center;
    color: #bbb;
    font-size: 0.9rem;
}

/* Responsive Design */
/* Ensure proper mobile rendering */
@viewport {
    width: device-width;
    zoom: 1.0;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: center;
    }
    
    /* Show mobile menu toggle */
    .menu-toggle {
        display: flex;
    }
    
    /* Hide main navigation by default on mobile */
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        transition: 0.3s;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 99;
    }
    
    /* Show navigation when active */
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0; /* Reduced padding */
    }
    
    .main-nav ul li {
        margin: 0.5rem 0; /* Reduced margin from 1rem to 0.5rem */
        text-align: center;
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 0.75rem; /* Reduced padding */
        font-size: 1.1rem; /* Slightly reduced font size */
        border-bottom: 1px solid #eee;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-column ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .footer-column h3 {
        font-size: 1.2rem;
    }
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Use Cases Styles */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.use-case h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.use-case p {
    color: #666;
    line-height: 1.6;
}