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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Gradient Text (PDFfiller inspired) */
.gradient-text {
    background: linear-gradient(135deg, #02c385 0%, #49a5f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand h1 {
    font-size: 2rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #02c385;
}

/* Ad Containers */
.ad-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Content Wrapper with Side Ads */
.content-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    align-items: flex-start;
}

.side-ad {
    width: 160px;
    min-height: 600px;
    background: #f7fafc;
    border-radius: 8px;
    padding: 10px;
    position: sticky;
    top: 90px;
}

.left-ad {
    order: 1;
}

.right-ad {
    order: 3;
}

main {
    flex: 1;
    order: 2;
    min-height: 600px;
}

@media (max-width: 1200px) {
    .side-ad {
        display: none;
    }
    .content-wrapper {
        justify-content: center;
    }
}

.ad-top {
    background: #f0f4f8;
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.ad-bottom, .ad-middle, .ad-converter-top, .ad-converter-bottom {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin: 30px auto;
}

.ad-placeholder {
    background: #e2e8f0;
    border: 2px dashed #a0aec0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-weight: 500;
    text-align: center;
}

.ad-placeholder p {
    margin: 10px;
}

/* Sidebar Layout */
.main-content {
    flex: 1;
}

.sidebar-ad {
    width: 320px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.ad-sidebar .ad-placeholder {
    width: 300px;
    height: 600px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-title .gradient-text {
    -webkit-text-fill-color: white;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-card.ad-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

.feature-card.ad-card:hover {
    transform: none;
}

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

.feature-card h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Inline Ads */
.ad-inline .ad-placeholder {
    width: 300px;
    height: 250px;
}

.ad-converter-inline {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #02c385 0%, #49a5f1 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 195, 133, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    font-size: 1.1rem;
    padding: 15px 40px;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

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

/* Benefits Section */
.benefits-section {
    margin: 60px 0;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #2d3748;
}

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

.benefit {
    text-align: center;
    padding: 20px;
}

.benefit h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.benefit p {
    color: #718096;
    line-height: 1.6;
}

/* Converter Page Styles */
.converter-page {
    padding: 40px 0;
}

.converter-header {
    text-align: center;
    margin-bottom: 40px;
}

.converter-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.converter-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.converter-tool {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

/* Upload Area */
.upload-area {
    margin-bottom: 40px;
}

.upload-box {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box:hover {
    border-color: #02c385;
    background: #f0fff4;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #a0aec0;
}

.upload-box h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.upload-box p {
    color: #718096;
    margin-bottom: 25px;
}

.btn-upload {
    background: linear-gradient(135deg, #02c385 0%, #49a5f1 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* Conversion Options */
.conversion-options {
    margin-bottom: 40px;
    padding: 30px;
    background: #f7fafc;
    border-radius: 8px;
}

.conversion-options h3 {
    margin-bottom: 20px;
    color: #2d3748;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.option label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-weight: 500;
}

.option input[type="checkbox"], .option select {
    margin-right: 5px;
}

.option select {
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
}

/* Convert Section */
.convert-section {
    text-align: center;
    margin: 40px 0;
}

/* Instructions */
.instructions {
    background: #f7fafc;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.instructions h3 {
    color: #2d3748;
    margin-bottom: 20px;
}

.instructions ol {
    color: #4a5568;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #02c385;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar-ad {
        width: 100%;
        position: static;
        order: -1;
    }
    
    .ad-sidebar .ad-placeholder {
        width: 100%;
        height: 250px;
        writing-mode: initial;
        text-orientation: initial;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-box {
        padding: 40px 20px;
    }
    
    .converter-tool {
        padding: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .converter-header h1 {
        font-size: 2rem;
    }
}