/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f9fa;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
header {
    background: #222;
    color: #fff;
    padding: 1rem 0;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}
nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
nav .logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
/* Logo image in navbar */

 .nav-logo-img {
  height: 60px; /* increase from 40px */
  width: auto;  /* keeps aspect ratio */
  object-fit: contain; /* ensures it doesn't stretch */
  vertical-align: middle; /* aligns with text nicely */
}

.logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
nav ul li a:hover {
    color: #00b894;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    margin: 2rem auto 0 auto;
    padding: 0 1rem;
}
.compressor-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
}
.compressor-section h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.compressor-section p {
    margin-bottom: 1.5rem;
    color: #555;
}
#compressForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#imageInput {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#previewContainer {
    margin: 1rem 0;
    text-align: center;
}
#imagePreview, #compressedImage {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
/* Hidden by default; JS will toggle these classes when needed */
#imagePreview {
    display: none;
}
#originalSpecs {
    display: none;
}
#outputContainer {
    display: none;
}
label[for="compressionRange"] {
    font-weight: 500;
}
#compressionRange {
    width: 100%;
}
button[type="submit"] {
    background: #00b894;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
button[type="submit"]:hover {
    background: #019875;
}
#outputContainer {
    margin-top: 2rem;
    text-align: center;
}
#downloadBtn {
    display: inline-block;
    margin-top: 1rem;
    background: #0984e3;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
#downloadBtn:hover {
    background: #0652dd;
}
.ad-space {
    margin: 2rem 0;
    width: 100%;
    max-width: 500px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.adsbygoogle {
    width: 100%;
    min-height: 90px;
}

/* make sure the ad placeholder occupies space by default */
.adsbygoogle {
    display: block;
}
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}
/* Responsive Design */
@media (max-width: 700px) {
    nav ul {
        gap: 1rem;
    }
    /* Hide the logo text on small screens to save space */
    .logo-text {
        display: none;
    }
    .compressor-section, .ad-space {
        max-width: 100%;
        padding: 1rem;
    }
    main {
        margin: 1rem auto 0 auto;
    }
}
/* About, Contact, Privacy Pages */
.page-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2rem;
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
}
.page-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.page-section p, .page-section ul, .page-section li {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Contact Form Styling */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
#contactForm label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}
#contactForm input, #contactForm textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
#contactForm input:focus, #contactForm textarea:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.1);
}
#contactForm button {
    background: #00b894;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}
#contactForm button:hover {
    background: #019875;
}

/* Image Specs Display */
.image-specs {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #00b894;
}
.image-specs h3 {
    margin-bottom: 0.5rem;
    color: #333;
}
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}
.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
.spec-item:last-child {
    border-bottom: none;
}
.spec-label {
    font-weight: 500;
    color: #555;
}
.spec-value {
    color: #333;
    font-weight: 600;
}
.compression-ratio {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
} 