/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0F766E; /* Teal 700 */
    --primary-light: #14B8A6; /* Teal 500 */
    --accent-color: #FACC15; /* Yellow 400 */
    --dark-bg: #0F172A; /* Slate 900 */
    --light-bg: #F0FDFA; /* Teal 50 */
    --text-color: #1E293B; /* Slate 800 */
    --text-light: #64748B; /* Slate 500 */
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-store {
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 160px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-store:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-store svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.btn-store .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-store .text span:first-child {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
}

.btn-store .text span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Header/Nav */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-bg-gradient-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    filter: blur(60px);
}

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

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px -12px rgba(0, 0, 0, 0.25));
    animation: float 6s ease-in-out infinite;
    transform: perspective(1000px) rotateY(-10deg);
    border-radius: 2rem;
}

.hero-badge {
    position: absolute;
    top: 20%;
    right: 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 5s ease-in-out infinite reverse;
}

.hero-badge .icon {
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.hero-badge h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-color);
}

.hero-badge p {
    font-size: 0.75rem;
    color: var(--text-light);
}

@keyframes float {
    0% { transform: translateY(0px) perspective(1000px) rotateY(-10deg); }
    50% { transform: translateY(-20px) perspective(1000px) rotateY(-10deg); }
    100% { transform: translateY(0px) perspective(1000px) rotateY(-10deg); }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

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

.feature-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-xl);
    border-color: #E2E8F0;
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Why Choose Us / CTA Hybrid */
.cta-section {
    padding: 6rem 0;
    background-color: var(--dark-bg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 30px 30px;
}

.cta-container {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-container p {
    font-size: 1.25rem;
    color: #94A3B8;
    margin-bottom: 3rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem 0;
    background-color: var(--light-bg);
    border-top: 1px solid #E2E8F0;
}

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

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-light);
    max-width: 300px;
}

.footer-links h4 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-light);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 2; /* Image below text on tablets if preferred, or keep on top */
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .hero-badge {
        right: 10%;
        top: 10%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 6rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-container h2 {
        font-size: 2.25rem;
    }
}

/* Hijaiyah Grid */
.hijaiyah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
    direction: rtl; /* Right to left for Arabic */
    padding: 2rem 0;
}
.hijaiyah-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.hijaiyah-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}
.hijaiyah-card:active {
    transform: scale(0.95);
}
.hijaiyah-char {
    font-size: 3rem;
    font-family: 'Amiri', serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.hijaiyah-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}
.playing {
    border-color: var(--accent-color);
    background-color: #FEF9C3;
}
