* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    color: #2d3748;
    line-height: 1.6;
}

/* Header */
.site-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6366f1;
    margin: 0;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-nav a:hover {
    color: #6366f1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.main-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.main-subheading {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.95;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tool-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: -60px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 700px; /* Narrower tool area for ads space */
}

/* Tool Section */
.tool-section {
    padding: 0 0 4rem 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
}

/* Ad Space Containers */
.ad-space-left,
.ad-space-right {
    width: 160px;
    min-height: 600px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px;
    position: sticky;
    top: 80px;
}

.ad-placeholder {
    width: 100%;
    height: 600px;
    background: white;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.drop-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f7fafc;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #667eea;
    background: #edf2f7;
    transform: scale(1.02);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #667eea;
    margin-bottom: 20px;
}

.drop-text {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 500;
}

.drop-subtext {
    color: #a0aec0;
    margin-bottom: 15px;
}

.upload-btn {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.format-text {
    margin-top: 15px;
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Preview Section */
.preview-section {
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

.preview-section h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.preview-container {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #f7fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    margin-bottom: 15px;
}

.preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-info {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.image-info span {
    background: #edf2f7;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4a5568;
}

/* Settings Section */
.settings-section {
    animation: fadeIn 0.5s ease;
}

.settings-section h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.helper-text {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Format Selector */
.format-selector {
    margin-bottom: 25px;
}

.format-selector > label {
    display: block;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.radio-label input[type="radio"] {
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

/* Buttons */
.download-btn,
.reset-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: #667eea;
    color: white;
    margin-bottom: 10px;
}

.download-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-btn:active {
    transform: translateY(0);
}

.reset-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.reset-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Progress Section */
.progress-section {
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #667eea;
    font-weight: 500;
}

/* Info Sections */
.info-section,
.how-to-section,
.use-case-section,
.faq-section,
.privacy-section,
.contact-section {
    padding: 4rem 0;
}

.info-section {
    background: white;
}

.info-section h2,
.how-to-section h2,
.use-case-section h2,
.faq-section h2,
.privacy-section h2,
.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    text-align: center;
}

.intro-text {
    text-align: center;
    font-size: 1.15rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    color: #667eea;
    margin: 0 auto 1rem auto;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.feature-item p {
    color: #4a5568;
    line-height: 1.6;
}

/* How to Use Steps */
.how-to-section {
    background: #f8f9fa;
}

.steps-list {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.step-content p {
    color: #4a5568;
    line-height: 1.6;
}

.important-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
    color: #856404;
}

/* Use Case Section */
.use-case-section {
    background: white;
}

.use-case-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #4a5568;
    text-align: center;
    line-height: 1.8;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.faq-item p {
    color: #4a5568;
    line-height: 1.7;
}

/* Privacy & Contact Sections */
.privacy-section,
.contact-section {
    background: white;
}

.privacy-section p,
.contact-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #4a5568;
    text-align: center;
    line-height: 1.7;
}

.contact-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ad-space-left,
    .ad-space-right {
        display: none; /* Hide ads on tablets and mobile */
    }
    
    .tool-section {
        justify-content: center;
    }
    
    .tool-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .main-heading {
        font-size: 1.75rem;
    }
    
    .main-subheading {
        font-size: 1rem;
    }
    
    .tool-container {
        padding: 25px;
        margin-top: -40px;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .drop-zone {
        padding: 40px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-heading {
        font-size: 1.5rem;
    }
}

/* --------------------------------------------------
   Privacy & Contact Page Styling
-------------------------------------------------- */

.page-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(15,23,42,0.04);
}

.page-container h1 {
    margin-top: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.page-container h2 {
    margin-top: 30px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #1f2937;
}

.page-container p,
.page-container li {
    font-size: 1rem;
    line-height: 1.65;
    color: #4b5563;
}

.page-container ul {
    padding-left: 20px;
}

.page-container footer {
    margin-top: 40px;
    text-align: center;
    color: #6b7280;
}

/* Contact form styling */
.contact-card {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.05);
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,0.1);
    background: #ffffff;
    font-size: 1rem;
}

.contact-card input:focus,
.contact-card textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(107,70,255,0.15);
}

.contact-card button {
    margin-top: 12px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .page-container {
        padding: 20px;
    }
}
