/* ==========================================
   IQAdda Web Portal Styles
   ========================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* ==========================================
   Header & Navigation
   ========================================== */

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #764ba2;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

/* ==========================================
   Main Content
   ========================================== */

main {
    background: white;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

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

.hero .tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ==========================================
   Buttons
   ========================================== */

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.cta-button.large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
}

.play-icon {
    margin-right: 0.5rem;
}

/* ==========================================
   Features Section
   ========================================== */

.features {
    padding: 3rem 2rem;
}

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

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ==========================================
   About Section
   ========================================== */

.about {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.about h2 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ==========================================
   Screenshots Section
   ========================================== */

.screenshots {
    padding: 3rem 2rem;
}

.screenshots h2 {
    text-align: center;
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.screenshot-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-screenshot {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.app-screenshot:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
}

/* ==========================================
   Download Section
   ========================================== */

.download {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download .cta-button {
    background: white;
    color: #667eea;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact {
    padding: 3rem 2rem;
}

.contact h2 {
    text-align: center;
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact p {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ==========================================
   Legal Pages (Privacy & Terms)
   ========================================== */

.legal-page {
    background: white;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 3rem 2rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.updated-date {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-section h3 {
    color: #764ba2;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.legal-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section a {
    color: #667eea;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* ==========================================
   Footer
   ========================================== */

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    margin-top: 1rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.legal-links a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
}

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

/* ==========================================
   Scroll to Top Button
   ========================================== */

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.scroll-top:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.scroll-top.show {
    display: flex;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

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

    .features h2,
    .about h2,
    .contact h2 {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .download h2 {
        font-size: 2rem;
    }

    .cta-button.large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .features,
    .about,
    .contact,
    .screenshots {
        padding: 2rem 1rem;
    }

    .legal-page {
        padding: 2rem 1rem;
    }
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    header,
    footer,
    .scroll-top {
        display: none;
    }

    .legal-page {
        box-shadow: none;
        margin: 0;
    }

    body {
        background: white;
    }
}
