/* 
 * Advanced Tool Library Website Styles
 * Clean, sans-serif design with responsive layout
 * Supports index.html and privacy-policy.html
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Container for centering content with padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Superscript for ® symbol */
sup {
    font-size: 0.75em;
    vertical-align: super;
}

/* Navigation */
.nav {
    background-color: #2563eb;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.nav-link:hover {
    background-color: #1e40af;
}

.download-link {
    text-decoration: none;
}

.active {
    background-color: #1e40af;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.nav-toggle svg {
    width: 2rem;
    height: 2rem;
    stroke: white;
}

/* Hero Section */
.hero {
    background-color: #f3f4f6;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.button {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 1.125rem;
}

.button:hover {
    background-color: #1e40af;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: white;
}

.features h2 {
    font-size: 2rem;
    color: #111827;
    text-align: center;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.feature-reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    min-width: 300px;
}

.feature-text h3 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.feature-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: #4b5563;
}

.feature-img {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    height: auto; /* Maintain aspect ratio by auto-adjusting height */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Screenshots Section */
.screenshots {
    padding: 4rem 0;
    background-color: #f3f4f6;
}

.screenshots h2 {
    font-size: 2rem;
    color: #111827;
    text-align: center;
    margin-bottom: 2rem;
}

.screenshot-gallery {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}

.screenshot-gallery img {
    width: 320px;
    height: auto; /* Maintain aspect ratio */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    scroll-snap-align: start;
}

/* System Requirements Section */
.requirements {
    padding: 4rem 0;
    background-color: white;
    text-align: center;
}

.requirements h2 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 1.5rem;
}

.requirements ul {
    list-style-type: disc;
    padding-left: 0;
    display: inline-block;
    text-align: left;
    color: #4b5563;
}

/* Support Section */
.support {
    padding: 4rem 0;
    background-color: white;
    text-align: center;
}

.support h2 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 1rem;
}

.support p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.support-email {
    color: #2563eb;
    text-decoration: none;
}

.support-email:hover {
    text-decoration: underline;
}

/* Privacy Policy Section */
.privacy-policy {
    padding: 4rem 0;
    background-color: white;
}

.privacy-policy h1 {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 1rem;
}

.privacy-policy h2 {
    font-size: 1.5rem;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.privacy-policy p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.last-updated {
    font-style: italic;
}

/* Footer */
.footer {
    background-color: #2563eb;
    color: white;
    padding: 2rem 0;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background-color: #2563eb;
        padding: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .feature {
        flex-direction: column;
    }

    .feature-reverse {
        flex-direction: column;
    }
    
    .feature-img {
        width: 100%;
        height: auto;
    }

    .screenshot-gallery img {
        width: 100%; /* Allow images to scale to container width */
        max-width: 320px; /* Maintain max width but allow shrinking */
        height: auto;
    }
}

@media (min-width: 769px) {
    .feature {
        flex-wrap: nowrap;
    }
}