/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f4f8;
    color: #2e2e2e;
    line-height: 1.65;
}

/* Navbar Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    color: #fff;
    padding: 16px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: background 0.3s ease;
}

nav:hover {
    background: #222;
}

.nav-brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #1de9b6;
    transform: scale(1.05);
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background: #2f3b50;
    min-width: 180px;
    top: 100%;
    right: 0;
    list-style: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.dropdown-content li a {
    padding: 14px 18px;
    display: block;
    color: #f0f0f0;
    font-weight: 500;
}

.dropdown-content li a:hover {
    background: #1de9b6;
    color: #1a1a1a;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #4facfe, #00f2fe);
    color: #fff;
    text-align: center;
    padding: 80px 30px;
    animation: fadeIn 1s ease-in-out;
    box-shadow: inset 0 -10px 40px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 780px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Tool Area */
.tool-area {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
}

.tool-box {
    max-width: 650px;
    width: 100%;
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    text-align: center;
    animation: slideUp 0.7s ease;
    transition: all 0.3s ease;
}

.tool-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

/* Upload Section */
.upload-section {
    margin-bottom: 35px;
}

.upload-area {
    border: 2px dashed #00c0ff;
    border-radius: 12px;
    padding: 45px 25px;
    background: #f7fbff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #009ad6;
    background: #eef8ff;
}

.upload-content svg {
    color: #00c0ff;
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.upload-content h3 {
    color: #00c0ff;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.upload-content p {
    margin: 12px 0;
    color: #555;
}

.upload-info {
    font-size: 0.9rem !important;
    color: #999 !important;
    margin-top: 18px !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-secondary {
    background: #00c0ff;
    color: #fff;
}

.btn-secondary:hover {
    background: #009ad6;
}

.btn-primary {
    background: #00c0ff;
    color: #fff;
}

.btn-primary:hover {
    background: #009ad6;
}

.btn-large {
    padding: 16px 35px;
    font-size: 1.15rem;
    margin: 22px 0;
}

.btn-download {
    background: #1de9b6;
    color: #1a1a1a;
    margin: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    padding: 16px 22px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.btn-download:hover {
    background: #16bfa5;
}

/* Action Section */
.action-section {
    margin: 32px 0;
}

/* Processing Status */
.processing-status {
    margin: 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #00c0ff;
}

.loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e3f2fd;
    border-top: 3px solid #00c0ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Preview Section */
.preview-section {
    margin: 32px 0;
}

.preview-container {
    margin: 22px 0;
}

.preview-box {
    background: #f7fbff;
    border-radius: 12px;
    padding: 22px;
    margin: 22px 0;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.preview-box h3 {
    color: #00c0ff;
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.image-container {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="10" height="10" fill="%23e1e1e1"/><rect x="10" y="10" width="10" height="10" fill="%23e1e1e1"/></svg>');
    border-radius: 10px;
    padding: 22px;
    display: inline-block;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Download Section */
.download-section {
    margin: 35px 0;
}

.download-options {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error Message */
.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.25);
    z-index: 1000;
    max-width: 420px;
    text-align: center;
    animation: slideUp 0.4s ease-in-out;
}

.error-content svg {
    color: #e74c3c;
    margin-bottom: 18px;
    font-size: 2rem;
}

.error-content p {
    margin: 18px 0;
    color: #333;
}

/* Content Section */
.content {
    background: #e0f2ff;
    padding: 60px 25px;
    animation: fadeIn 0.8s ease;
}

.tool-container {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.content h2 {
    font-size: 2rem;
    color: #009ad6;
    margin-bottom: 22px;
    font-weight: 700;
}

.content p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 22px;
    line-height: 1.65;
}

.content ul {
    list-style: none;
    padding: 0;
    margin: 22px 0;
}

.content ul li {
    margin-bottom: 16px;
    padding-left: 36px;
    position: relative;
    line-height: 1.65;
    color: #333;
}

.content ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #00c0ff;
    font-weight: bold;
}

/* Internal Section Styling */
.internal {
    background: linear-gradient(135deg, #f5fcff, #dcecff);
    border: 1px solid #c0d7f0;
    padding: 24px;
    margin: 45px auto;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    max-width: 740px;
    transition: all 0.3s ease-in-out;
}

.internal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.internal p {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.65;
}

.internal a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.internal a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #007bff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.internal a:hover {
    color: #0056cc;
}

.internal a:hover::after {
    transform: scaleX(1);
}

/* Footer */
.footer {
    background: #0b0f1d;
    color: #d1d5db;
    padding: 28px 18px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    max-width: 1280px;
    margin: auto;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #38bdf8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin: 6px 0;
}

.footer-column ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.footer-column ul li a:hover {
    color: #38bdf8;
}

.footer-bottom {
    text-align: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #334155;
    font-size: 13px;
    color: #94a3b8;
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .tool-box {
        padding: 25px;
    }

    .download-options {
        flex-direction: column;
        align-items: center;
    }

    .btn-download {
        width: 100%;
        max-width: 260px;
    }

    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .content h2 {
        font-size: 1.7rem;
    }
}
