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

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

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

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 1px;
    z-index: 10;
    display: flex;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.language-selector select {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    background: white;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 120px;
}

.language-selector select:hover {
    border-color: #2c7a7b;
    box-shadow: 0 4px 16px rgba(44, 122, 123, 0.15);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.nav {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c7a7b;
}

.nav {
    display: flex;
    gap: 2rem;
}

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

.nav a:hover {
    color: #2c7a7b;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c7a7b;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(226, 232, 240, 0.95) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
    margin-top: 0;
    overflow: visible;
    position: relative;
}

.hero-sublogo{
    width: 200px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.hero-text {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow: visible;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    word-break: break-word;
    max-width: 100%;
    overflow: visible;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    word-break: break-word;
    max-width: 100%;
    overflow: visible;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-width: 200px;
    height: 40px;
}

.btn-primary {
    background: #2c7a7b;
    color: white;
    box-shadow: 0 4px 20px rgba(44, 122, 123, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(44, 122, 123, 0.4);
}

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

.btn-secondary:hover {
    background: #2c7a7b;
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.screenshot-viewer {
    position: relative;
    width: 100%;
    height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.screenshots-scroll {
    position: relative;
    width: 400px;
    height: 800px;
    margin-bottom: 2rem;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 0;
}

.nav-btn {
    background: #2c7a7b;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #2c7a7b;
    transform: scale(1.05);
}

.nav-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.screenshot-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2c7a7b;
    transform: scale(1.2);
}

.dot:hover {
    background: #2c7a7b;
}



.screenshot-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2c7a7b;
    transform: scale(1.2);
}

.iphone-frame {
    position: absolute;
    width: 280px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.iphone-frame.active {
    opacity: 1;
    visibility: visible;
}

.iphone-frame:hover {
    transform: translate(-50%, -50%) perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 45px;
    z-index: 1;
    box-shadow: 
        0 0 0 2px #333,
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}



.hero-app {
    width: 100%;
    height: auto;
    border-radius: 40px;
    position: relative;
    z-index: 2;
    display: block;
}

.hero-app:hover {
    transform: none;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: #2c7a7b;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

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



/* Cuisine Section */
.cuisine {
    padding: 80px 0;
    background: white;
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cuisine-item {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.cuisine-img {
    width: 100%;
    max-width: 150px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.cuisine-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    color: white;
    text-align: center;
    backdrop-filter: blur(5px);
}

.download-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    margin-bottom: 2rem;
}

.appstore-icon {
    height: 50px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-small {
    font-size: 0.8rem;
    color: #9ca3af;
}

.btn-large {
    font-size: 1.5rem;
    font-weight: 600;
}

.download-note {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(5px);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #2c7a7b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #64748b;
}

.contact-simple {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-email-btn {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(44, 122, 123, 0.3);
    min-width: 200px;
    height: 56px;
    font-weight: 600;
}

.contact-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(44, 122, 123, 0.4);
    text-decoration: none;
}

.contact-note {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
}



/* Footer */
.footer {
    background: rgba(44, 122, 123, 0.95);
    color: white;
    padding: 40px 0 40px;
    backdrop-filter: blur(5px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c7a7b;
}

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

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

.footer-links a:hover {
    color: #2c7a7b;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #2c7a7b;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: right;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Touch-friendly improvements */
    .btn, .nav-btn, .contact-email-btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
    }
    
    .language-selector select {
        min-height: 44px;
    }
    
    /* Better spacing for mobile */
    .section {
        padding: 60px 0;
    }
    
    .features, .contact, .download {
        padding: 60px 0;
    }
    
    /* Mobile background fixes */
    body {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        min-height: 100vh;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    html {
        min-height: 100vh;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 0;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .hero, .features, .screenshots, .cuisine, .download, .contact {
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .container {
        padding: 0 15px;
    }
    
    /* Header Mobile Fixes */
    .header {
        padding: 8px 0;
        width: 100%;
        margin: 0;
    }
    
    .header .container {
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 0;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .language-selector {
        margin-left: 0;
        flex-shrink: 0;
    }
    
    .language-selector select {
        min-width: 140px;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav {
        display: none;
    }
    
    /* Hero Mobile Fixes */
    .hero {
        padding: 140px 0 60px;
        min-height: auto;
        margin-top: 0;
        height: auto;
        display: block;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: visible;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: visible;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        white-space: normal;
        word-break: normal;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        width: 100%;
        height: auto;
        max-width: 100%;
        align-items: flex-start;
        justify-items: center;
        min-height: auto;
    }
    
    .hero-text {
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-all;
        hyphens: auto;
        overflow: visible;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        min-width: 250px;
        height: 50px;
        font-size: 1rem;
    }
    
    .hero-sublogo {
        width: 150px;
        margin: 0 auto 1rem;
    }
    
    /* Screenshot Mobile Fixes */
    .iphone-frame {
        max-width: 250px;
    }
    
    .screenshot-viewer {
        height: 600px;
    }
    
    .screenshots-scroll {
        height: 500px;
        padding: 1rem;
    }
    
    .screenshot-nav {
        gap: 1rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Other Sections */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    

    
    .cuisine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-simple {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Header Small Mobile */
    .header {
        padding: 6px 0;
    }
    
    .header .container {
        gap: 0.8rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .language-selector {
        margin-left: 0;
        flex-shrink: 0;
    }
    
    .language-selector select {
        min-width: 120px;
        padding: 0.3rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Hero Small Mobile */
    .hero {
        padding: 130px 0 40px;
        margin-top: 0;
        height: auto;
        min-height: auto;
        display: block;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: visible;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: visible;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        white-space: normal;
        word-break: normal;
    }
    
    .hero-sublogo {
        width: 120px;
    }
    
    .btn {
        min-width: 220px;
        height: 45px;
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    /* Screenshots Small Mobile */
    .screenshot-viewer {
        height: 500px;
    }
    
    .screenshots-scroll {
        height: 400px;
        padding: 0.8rem;
    }
    
    .iphone-frame {
        max-width: 200px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Other Sections Small Mobile */
    .section-title {
        font-size: 1.8rem;
    }
    
    .cuisine-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .contact-simple {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .contact-text {
        font-size: 1.1rem;
    }
    
    .contact-email-btn {
        min-width: 200px;
        height: 50px;
        font-size: 1rem;
        padding: 1rem 2rem;
    }
    
    /* Small mobile background fixes */
    body {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        min-height: 100vh;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    html {
        min-height: 100vh;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        margin: 0;
    }
    
    .hero, .features, .screenshots, .cuisine, .download, .contact {
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

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

[dir="rtl"] .nav a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-end;
}

[dir="rtl"] .footer-social {
    justify-content: flex-start;
}

/* Smooth animations */
.feature-card,
.cuisine-item,
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
