/* --- General & Variables --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #28a745;
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --white: #ffffff;
    /* Box Design Variables */
    --border-color: #dee2e6;
    --border-radius: 10px;
    --box-shadow-static: 0 2px 4px rgba(0, 0, 0, 0.04);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }

h2 {     
    font-size: 2rem;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px; 
}
h3 { font-size: 1.25rem; }



a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* --- Header & Navigation --- */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 80px 0;
}

.hero .subtext {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upload-box {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--box-shadow-static);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.upload-box.drag-over {
    border-color: var(--primary-color);
    background-color: #eef6ff;
}

.upload-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

.supported-formats {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.conversion-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-item label {
    font-weight: 500;
    color: #495057;
}

.option-item input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 35px;
    height: 35px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

.option-item input[type="color"]::-webkit-color-swatch {
    border-radius: 6px;
    border: none;
}

.option-item input[type="color"]::-moz-color-swatch {
    border-radius: 6px;
    border: none;
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.success-message {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Tools Section --- */
.tools {
    padding: 80px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tool-card {
    background: var(--white);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-static);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.tool-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tool-card p {
    font-size: 0.95rem;
    color: #6c757d;
}

/* --- How It Works Section --- */
.how-it-works {
    padding: 80px 0;
    background-color: var(--white);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    background: var(--white);
    padding: 30px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-static);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 10px;
} 

/* --- Text Content Section --- */
.text-content {
    padding: 80px 0; /* This creates space around the box */
}

.text-content .container {
    max-width: 800px; /* Optimal width for reading */
    background: var(--white);
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-static);
}

.text-content h2 {
    text-align: left; /* Override global center alignment */
    font-size: 2.2rem;
    margin-top: 50px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.text-content h2:first-of-type {
    margin-top: 0;
}

.text-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.text-content p,
.text-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057; /* Softer text color for readability */
    margin-bottom: 20px;
}

.text-content ul,
.text-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.text-content li {
    padding-left: 10px;
}

.text-content ul {
    list-style: none;
}

.text-content ul li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-left: -25px;
    margin-right: 12px;
}

.text-content strong, .text-content b {
    color: var(--text-color);
    font-weight: 600;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden; /* Important for the max-height transition */
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow-static);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    color: #6c757d;
    line-height: 1.7;
}

/* Active state for FAQ */
.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* --- Footer --- */
footer {
    background-color: var(--text-color);
    color: var(--light-gray);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--white);
    margin-right: 20px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.privacy-note {
    font-size: 0.9rem;
    text-align: right;
    colow:white;
}

/* --- Responsive Design --- */
@media screen and (max-width: 992px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 65px; /* Adjust based on header height */
        background-color: var(--white);
        height: calc(100vh - 65px);
        width: 60%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
    }

    .burger {
        display: block;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media screen and (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-note {
        text-align: center;
    }
}
