* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f9f9f9;
    color: #333;
}

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

.header,
.footer {
    background: linear-gradient(to right, #333, #555);
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
}

.nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: #007bff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    background: linear-gradient(to bottom, #007bff, #0056b3);
    color: #fff;
    text-align: center;
    padding: 100px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

.primary {
    background: #fff;
    color: #007bff;
}

.secondary {
    background: #28a745;
    color: #fff;
    border: none;
}

.features,
.how-it-works,
.gallery,
.about {
    padding: 60px 0;
    text-align: center;
}

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

.feature-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.feature-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.how-it-works ol {
    list-style-position: inside;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto;
}

.preview-placeholder,
.output-placeholder,
.upload-placeholder {
    background: #fff;
    border: 2px dashed #ccc;
    border-radius: 10px;
    height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.preview-placeholder:hover,
.upload-placeholder:hover {
    border-color: #007bff;
}

.preview-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.main-content .tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.output-placeholder svg {
    max-width: 100%;
    margin: 0 auto;
    display: block;
    background: #fafafa;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#error-area {
    margin: 20px 0;
    color: #b90000;
    font-weight: bold;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

select {
    margin: 10px 0;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
}

@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        display: none;
        gap: 15px;
    }

    .nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}