:root {
    --dark-bg: #231955;
    --card-bg: #1b0349;
    --primary-text: #ffffff;
    --secondary-text: #dcdae4;
    --accent-pink: #ff6b9d;
    --accent-green: #46d362;
    --accent-yellow: #ffec5c;
    --accent-blue: #3db4ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--primary-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.ao-logo-image {
    height: 40px;
    margin-right: 15px;
}

.logo h2 {
    float: right;
    font-weight: 500;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-text);
}

.hero {
    text-align: left;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    line-height: 2.5rem;
}

.hero p {
    color: var(--secondary-text);
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
}

.tagline {
    color: var(--accent-blue);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tool-card {
    background-color: var(--card-bg);
    border: 1px solid #6643ab;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 0px #6643ab;
}

.tool-card p {
    border: 1px solid #6643ab;
    border-radius: 20px;
    width: fit-content;
    padding: 5px 20px;
    margin-top: 5px;
}

.tools-grid .tool-card h3 {
    font-weight: 400;
    text-align: left;
}


a {
    text-decoration: none;
    color: #ffffff;
}

.tool-icon {
    margin-bottom: 0rem;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: left;
    align-items: left;
    color: #00E1BE;
}

.webp-info {
    max-width: 800px;
    margin: 3rem 0 5rem 0;
    padding: 0 1rem;
}

.webp-info h2 {
    margin-bottom: 0.6rem;
    font-size: 1.6rem;
    line-height: 2.2rem;
}

.benefits {
    margin: 2rem 0;
}

.benefits ol {
    padding-left: 1.5rem;
}

.benefits li {
    margin-bottom: 0.6rem;
}

.benefits strong {
    color: var(--primary-text);
}

.benefits h3 {
    padding-bottom: 0.6rem;
}

.conclusion {
    margin-top: 2rem;
}

.conclusion h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}


.footer {
    text-align: left;
    padding: 8rem 0;
    margin-top: 3rem;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.footer p {
    padding-bottom: 10px;
}


.domain-badge {
    display: inline-block;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-pink));
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.paypal img {
    max-width: 160px;
    margin-top: 20px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo h2 {}

    nav ul {
        gap: 1rem;
    }

    header p {}

    .container {
        padding: 0px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 2.2rem;
    }

    .tools-grid {
        gap: 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Image to PDF Specific Styles */
.upload-zone {
    border: 2px dashed var(--accent-blue);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.upload-zone:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-pink);
}

.upload-zone p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.file-list {
    list-style: none;
    margin-bottom: 2rem;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--card-bg);
    border: 1px solid #6643ab;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--accent-blue), #3d8bff);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(61, 180, 255, 0.4);
}

.btn-success {
    background: linear-gradient(to right, var(--accent-green), #2da045);
    color: white;
}

.btn-success:hover {
    box-shadow: 0 4px 15px rgba(70, 211, 98, 0.4);
}

.btn-danger {
    background-color: #ff4757;
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background-color: #ff6b81;
}

.action-buttons {
    margin-bottom: 3rem;
}

/* Image Compression Specific Styles */
.image-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid #6643ab;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.image-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 1.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-info {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-right: 1rem;
}

.image-info p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-blue);
    color: var(--dark-bg);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

@media (max-width: 600px) {
    .image-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .image-preview {
        margin-bottom: 1rem;
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
    }

    .image-info {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
        grid-template-columns: 1fr;
    }
}