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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFF8E1;
    overflow-x: hidden;
}

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

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(255, 111, 97, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: #FF6F61;
    min-width: 0;
    text-decoration: none;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FF6F61;
    box-shadow: 0 2px 8px rgba(255, 111, 97, 0.3);
}

.logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-shrink: 0;
}

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

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

.btn-nav {
    background: linear-gradient(135deg, #FF6F61, #FFB347);
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 111, 97, 0.3);
}

.lang-switcher {
    appearance: none;
    -webkit-appearance: none;
    background: white;
    border: 2px solid #FF6F61;
    border-radius: 20px;
    padding: 6px 30px 6px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #FF6F61;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF6F61' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.lang-switcher:hover {
    background-color: #FF6F61;
    color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

.lang-switcher:focus {
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.3);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #FF6F61 0%, #FF8A65 50%, #FFB347 100%);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><text x="10" y="40" font-size="40" opacity="0.1">🎵</text></svg>');
    opacity: 0.1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.btn-primary {
    background: #000;
    color: white;
}

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

.btn-secondary {
    background: white;
    color: #FF6F61;
}

.btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.app-icon {
    width: 24px;
    height: 24px;
}

.hero-note {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.85;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.phone-mockup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 2px);
    height: 100px;
    fill: #FFF8E1;
    transform: rotateX(180deg);
}

/* ===========================
   Features Section
   =========================== */
.features {
    padding: 100px 0;
    background: #FFF8E1;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-align: center;
    color: #FF6F61;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #666;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 111, 97, 0.2);
    border-color: #FF6F61;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF6F61;
    margin-bottom: 15px;
}

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

/* ===========================
   Screenshots Section
   =========================== */
.screenshots {
    padding: 100px 0;
    background: linear-gradient(135deg, #42D4A8 0%, #7B68EE 100%);
    color: white;
}

.screenshots .section-title {
    color: white;
}

.screenshots .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 50px;
    margin-top: 60px;
    align-items: start;
}

.screenshot-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.screenshot-card img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f5f5f5;
}

.screenshot-label {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screenshot-label .emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.screenshot-label h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF6F61;
    margin-bottom: 10px;
}

.screenshot-label p {
    color: #666;
}

/* ===========================
   How It Works Section
   =========================== */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: min(250px, 100%);
    max-width: 300px;
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #FFF8E1, #FFE4B5);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #FF6F61, #FFB347);
    color: white;
    font-size: 2rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FF6F61;
    margin-bottom: 10px;
}

.step p {
    color: #666;
}

.step-arrow {
    font-size: 2.5rem;
    color: #FF6F61;
    font-weight: 700;
}

/* ===========================
   Download Section
   =========================== */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #FF6F61, #FFB347);
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.download-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.download-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 18px 35px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.btn-download:hover {
    background: black;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

.btn-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: left;
}

.btn-store {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: left;
}

/* ===========================
   Privacy Policy Page
   =========================== */
.legal-page {
    padding: 140px 0 100px;
    background: #FFF8E1;
}

.legal-hero {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 3px solid #FFE4B5;
    margin-bottom: 40px;
}

.legal-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #FF6F61;
    margin-bottom: 10px;
}

.legal-subtitle {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 8px;
}

.legal-meta {
    font-size: 0.95rem;
    color: #999;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.legal-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid #FFE4B5;
}

.legal-card h2 {
    font-size: 1.4rem;
    color: #FF6F61;
    margin-bottom: 12px;
}

.legal-card p {
    color: #555;
    margin-bottom: 12px;
}

.legal-card ul {
    margin-left: 18px;
    color: #555;
}

.legal-card li {
    margin-bottom: 8px;
}

.legal-card a {
    color: #FF6F61;
    text-decoration: none;
}

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

/* ===========================
   Footer
   =========================== */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand p {
    opacity: 0.8;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #FFB347;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
    opacity: 0.8;
}

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

.footer-column a:hover {
    color: #FFB347;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .phone-mockup {
        max-width: 300px;
        animation: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .nav-brand {
        font-size: 18px;
    }

    .nav-links {
        gap: 10px;
        flex-shrink: 1;
    }

    .nav-links a:not(.btn-nav) {
        display: none;
    }

    .btn-nav {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .step-arrow {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .legal-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 16px;
        gap: 8px;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .navbar {
        padding: 10px 0;
    }

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

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

    .btn {
        font-size: 0.95rem;
        padding: 12px 25px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-hero {
        padding: 30px 20px;
    }

    .legal-card {
        padding: 22px;
    }
}

/* ===========================
   RTL Support (Arabic, Urdu)
   =========================== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

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

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

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

[dir="rtl"] .hero-content {
    direction: rtl;
}

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

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

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

[dir="rtl"] .btn-label,
[dir="rtl"] .btn-store {
    text-align: right;
}

[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle {
    text-align: center;
}

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

[dir="rtl"] .step-arrow {
    transform: scaleX(-1);
}

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

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

[dir="rtl"] .download-content {
    text-align: center;
}

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

[dir="rtl"] .lang-switcher {
    background-position: left 10px center;
    padding: 6px 14px 6px 30px;
}

[dir="rtl"] .legal-card ul {
    margin-left: 0;
    margin-right: 18px;
}
