/* Modern and Professional Styles matching the app theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #640D5F 0%, #D91656 50%, #EB5B00 100%);
    min-height: 100vh;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #640D5F 0%, #D91656 50%, #EB5B00 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #640D5F;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #640D5F;
}

/* Legal Notice Section */
.legal-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-top: 3px solid #d68910;
    border-bottom: 3px solid #d68910;
    padding: 3rem 2rem;
    margin: 0;
}

.notice-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #f39c12;
}

.notice-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.notice-content {
    flex: 1;
}

.notice-content h3 {
    color: #d68910;
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    text-align: center;
}

.notice-content p {
    color: #8b4513;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.notice-content strong {
    color: #d68910;
    font-weight: 700;
}

/* Responsive design for legal notice */
@media (max-width: 768px) {
    .legal-notice {
        padding: 2rem 1rem;
    }
    
    .notice-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
        gap: 1rem;
    }
    
    .notice-icon {
        font-size: 2.5rem;
        min-width: auto;
    }
    
    .notice-content h3 {
        font-size: 1.5rem;
    }
    
    .notice-content p {
        font-size: 1rem;
    }
}

/* Sections */
section {
    background: white;
    margin: 0;
    padding: 4rem 2rem;
}

section:nth-child(even) {
    background: #f8f9fa;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    color: #640D5F;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Feature Icons */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Screenshots Gallery */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Screenshot sets */
.screenshot-set {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.screenshot {
    background: white;
    border-radius: 15px;
    padding: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    max-width: 280px;
    margin: 0 auto;
}

.screenshot img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

.screenshot:hover {
    transform: translateY(-5px);
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .screenshot-set {
        grid-template-columns: 1fr;
    }
    
    .screenshot {
        max-width: 250px;
    }
    
    .screenshot img {
        max-height: 350px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
    
    .screenshot-set {
        grid-template-columns: repeat(2, 1fr);
    }
}

.screenshot:hover {
    transform: scale(1.05);
}

.screenshot img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Download Section */
#download {
    background: linear-gradient(135deg, #640D5F 0%, #D91656 50%, #EB5B00 100%);
    color: white;
}

#download h2 {
    color: white;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    color: #333;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.download-btn img {
    width: 40px;
    height: 40px;
}

/* Support Section Styles */
.support-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.support-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 280px;
    min-height: 200px;
}

.support-item:hover {
    transform: translateY(-5px);
}

.support-item h3 {
    color: #640D5F;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.support-item a {
    color: #D91656;
    text-decoration: none;
    font-weight: 600;
}

.support-item a:hover {
    text-decoration: underline;
    color: #EB5B00;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer a {
    color: #D91656;
    text-decoration: none;
}

footer a:hover {
    color: #EB5B00;
    text-decoration: underline;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

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

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

/* FAQ Styles */
.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #640D5F;
}

.faq-item h3 {
    color: #640D5F;
    margin-bottom: 0.5rem;
}

/* Language Selector Styles */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.language-selector select {
    border: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #640D5F;
    cursor: pointer;
    outline: none;
    border-radius: 20px;
}

/* Simple Download Buttons */
.download-btn-simple {
    display: inline-block;
    background: white;
    color: #640D5F;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid #640D5F;
    cursor: pointer;
}

.download-btn-simple:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #640D5F;
    color: white;
}

.download-btn-simple:active {
    transform: translateY(-1px);
}

/* Contact Page Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #640D5F;
}

.contact-item h3 {
    color: #640D5F;
    margin-bottom: 1rem;
}

.contact-item a {
    color: #D91656;
    text-decoration: none;
    font-weight: 600;
}

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

.important-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

/* Page Header Styles for themed pages */
.page-header {
    background: linear-gradient(135deg, #640D5F 0%, #D91656 50%, #EB5B00 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem 2rem 2rem;
    position: relative;
}

.page-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.back-btn {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.back-btn:hover {
    background: white;
    color: #640D5F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Page Content Styles */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    line-height: 1.7;
}

.page-content h2 {
    color: #640D5F;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 3px solid #D91656;
    padding-bottom: 0.5rem;
}

.page-content h3 {
    color: #640D5F;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
}

.page-content p {
    margin-bottom: 1rem;
    color: #333;
}

.page-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: #333;
}

.page-content a {
    color: #D91656;
    text-decoration: none;
    font-weight: 600;
}

.page-content a:hover {
    color: #EB5B00;
    text-decoration: underline;
}

.effective-date {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #640D5F;
    margin-top: 2rem;
    text-align: center;
}

.important-note h3 {
    color: #d68910;
    margin-top: 0;
}

/* User Guide & FAQ Specific Styles */
.guide-section {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.guide-section h2 {
    color: #640D5F;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #D91656;
    padding-bottom: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #640D5F;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
}

.info-item h3 {
    color: #640D5F;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.info-item p {
    color: #333;
    line-height: 1.6;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-5px);
}

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

.tip-item h3 {
    color: #640D5F;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tip-item p {
    color: #333;
    line-height: 1.6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
}

.faq-question {
    background: linear-gradient(135deg, #640D5F 0%, #D91656 100%);
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.faq-answer {
    padding: 1.5rem;
    background: white;
}

.faq-answer p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.back-home {
    text-align: center;
    margin: 3rem 0;
}

.back-home .btn-primary {
    background: linear-gradient(135deg, #640D5F 0%, #D91656 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-home .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .language-selector {
    right: auto;
    left: 20px;
}

[dir="rtl"] .floating-download {
    right: auto;
    left: 20px;
}

[dir="rtl"] .hero {
    text-align: center; /* Keep hero centered in RTL */
}

[dir="rtl"] .features-grid,
[dir="rtl"] .screenshots-grid,
[dir="rtl"] .support-grid {
    direction: rtl;
}

[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    [dir="rtl"] .language-selector {
        right: auto;
        left: 10px;
    }
    
    .page-header {
        padding: 3rem 1rem 1.5rem 1rem;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .page-content {
        padding: 2rem 1rem;
    }
    
    /* Support section responsive */
    .support-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .support-item {
        width: 100%;
        max-width: 400px;
        flex: none;
    }
}
