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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Animated Background with Islamic Patterns */
.hero {
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% 100%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating Islamic Stars */
.hero::before {
    content: '✨ ⭐ 🌙 ✨ ⭐';
    position: absolute;
    top: 50%;
    left: -100%;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    animation: floatStars 25s linear infinite;
    white-space: nowrap;
}

.hero::after {
    content: '🕌 ✨ 🌙 ⭐ 🕌';
    position: absolute;
    top: 30%;
    left: -100%;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    animation: floatStars 30s linear infinite;
    animation-delay: -10s;
    white-space: nowrap;
}

@keyframes floatStars {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Mosque Silhouette Pattern */
.mosque-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    opacity: 0.1;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path d="M600,20 L620,60 L640,50 L660,60 L680,20 L700,60 L720,50 L740,60 L760,20 M300,40 Q350,10 400,40 M800,40 Q850,10 900,40" stroke="white" fill="none" stroke-width="2"/><circle cx="600" cy="15" r="10" fill="white"/><circle cx="680" cy="15" r="10" fill="white"/><circle cx="760" cy="15" r="10" fill="white"/></svg>');
    background-repeat: repeat-x;
    background-position: 0 bottom;
    animation: slidePattern 40s linear infinite;
}

@keyframes slidePattern {
    0% { background-position: 0 bottom; }
    100% { background-position: 1200px bottom; }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 20px;
    animation: fadeInUp 1s ease;
}

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

/* Glowing Mosque Icon */
.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo {
    font-size: 5rem;
    animation: glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

@keyframes glow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
        transform: scale(1.05);
    }
}

.logo-text {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-top: 10px;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

/* App Store Buttons */
.app-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.app-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.app-icon {
    font-size: 2.5rem;
}

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

.app-text small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.app-text strong {
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-primary {
    background: white;
    color: #1e3a8a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    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: #1e3a8a;
    transform: translateY(-3px);
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* Sliding decoration */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: slideRight 3s ease-in-out infinite;
}

@keyframes slideRight {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1e3a8a;
}

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

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: rotateIcon 3s ease-in-out infinite;
}

@keyframes rotateIcon {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.8;
}

/* How It Works */
.how-it-works {
    padding: 80px 20px;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% 100%;
    animation: gradientShift 15s ease infinite;
    color: white;
    position: relative;
    overflow: hidden;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    padding: 30px;
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.4s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(4) { animation-delay: 0.8s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    width: 60px;
    height: 60px;
    background: white;
    color: #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }
}

.step:nth-child(2) .step-number { animation-delay: 0.3s; }
.step:nth-child(3) .step-number { animation-delay: 0.6s; }
.step:nth-child(4) .step-number { animation-delay: 0.9s; }

.step-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* About Section */
.about {
    padding: 80px 20px;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: #f8f9fa;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 2rem;
    color: #1e3a8a;
}

/* Footer */
footer {
    background: #1e3a8a;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

@media (max-width: 768px) {
    .logo { font-size: 3.5rem; }
    .logo-text { font-size: 2.5rem; }
    .tagline { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 80%; }
    .app-buttons { flex-direction: column; align-items: center; }
    .app-btn { width: 80%; justify-content: center; }
}

        /* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9999;
}

/* Show Popup */
.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Popup Box */
.popup-box {
    background: white;
    max-width: 420px;
    width: 90%;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Animation when active */
.popup-overlay.active .popup-box {
    transform: scale(1) translateY(0);
}

/* Popup Icon */
.popup-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: glow 2s ease-in-out infinite;
}

/* Popup Title */
.popup-box h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 15px;
}

/* Popup Text */
.popup-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Close Button */
.popup-close {
    padding: 12px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    background: #1e3a8a;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}
/* Islamic Pattern Background Inside Popup */
.popup-pattern {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%231e3a8a' stroke-width='0.5' opacity='0.15'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z'/%3E%3Cpath d='M50 20 L80 50 L50 80 L20 50 Z'/%3E%3Ccircle cx='50' cy='50' r='10'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    animation: patternMove 20s linear infinite;
    z-index: 0;
}

/* Pattern Animation */
@keyframes patternMove {
    from { background-position: 0 0; }
    to { background-position: 200px 200px; }
}

/* Make popup content appear above pattern */
.popup-box {
    position: relative;
    overflow: hidden;
}

.popup-box > *:not(.popup-pattern) {
    position: relative;
    z-index: 1;
}

/* App Popup Overlay */
.app-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9999;
}

.app-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Popup Box */
.app-popup-box {
    position: relative;
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 45px 30px;
    border-radius: 22px;
    text-align: center;
    transform: scale(0.8) translateY(40px);
    transition: all 0.4s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    overflow: hidden;
}

.app-popup-overlay.active .app-popup-box {
    transform: scale(1) translateY(0);
}

/* Islamic Pattern */
.app-popup-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%231e3a8a' stroke-width='0.6' opacity='0.12'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z'/%3E%3Ccircle cx='50' cy='50' r='18'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 110px 110px;
    animation: islamicFlow 25s linear infinite;
    z-index: 0;
}

@keyframes islamicFlow {
    from { background-position: 0 0; }
    to { background-position: 200px 200px; }
}

/* Mobile Mock */
.mobile-mock {
    position: relative;
    width: 140px;
    height: 260px;
    border-radius: 25px;
    background: #1e3a8a;
    margin: 0 auto 25px;
    box-shadow: 0 15px 40px rgba(30,58,138,0.5);
    animation: floatPhone 3s ease-in-out infinite;
    z-index: 1;
}

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

.mobile-notch {
    width: 60px;
    height: 8px;
    background: black;
    border-radius: 0 0 10px 10px;
    margin: 8px auto;
}

.mobile-screen {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    height: 200px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

/* Text */
.app-popup-box h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.app-popup-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* Close Button */
.app-popup-close {
    padding: 12px 35px;
    border-radius: 30px;
    border: none;
    background: #1e3a8a;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.app-popup-close:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

@media (max-width: 480px) {

    .popup-pattern {
        background-size: 90px 90px;
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {

    .mobile-mock {
        width: 110px;
        height: 210px;
        margin-bottom: 20px;
    }

    .mobile-screen {
        height: 160px;
        font-size: 2.2rem;
    }

    .mobile-notch {
        width: 45px;
        height: 7px;
    }

    .app-popup-pattern {
        background-size: 90px 90px;
        animation-duration: 35s;
    }
}

button, a {
    touch-action: manipulation;
}

/* =========================
   MOBILE FRIENDLY POPUPS
   ========================= */

@media (max-width: 480px) {

    /* Shared popup box sizing */
    .popup-box,
    .app-popup-box {
        width: 92%;
        padding: 30px 20px;
        border-radius: 18px;
    }

    /* Titles */
    .popup-box h2,
    .app-popup-box h2 {
        font-size: 1.6rem;
    }

    /* Paragraph text */
    .popup-box p,
    .app-popup-box p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Buttons */
    .popup-close,
    .app-popup-close {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    /* Reduce icon size */
    .popup-icon {
        font-size: 3.2rem;
    }
}
/* Floating Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 9999;
    animation: floatLogo 3s ease-in-out infinite;
}

/* Floating animation */
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Show button */
.scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}

/* Hover effect */
.scroll-top-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.6);
}

/* Mobile friendly */
@media (max-width: 480px) {
    .scroll-top-btn {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        bottom: 20px;
        right: 20px;
    }
}




.legal-page {
    background: #f8f9fa;
    padding: 80px 20px;
    min-height: 100vh;
}

.legal-container {
    max-width: 950px;
    margin: auto;
    background: white;
    padding: 50px 40px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.legal-container h1 {
    color: #1e3a8a;
    margin-bottom: 25px;
    text-align: center;
}

.legal-container h2 {
    margin-top: 30px;
    color: #3b82f6;
}

.legal-container p,
.legal-container li {
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

.legal-container ul {
    padding-left: 20px;
}

.back-home {
    text-align: center;
    margin-top: 40px;
}


.site-footer {
    background: #1e3a8a;  
    color: white;
    text-align: center;
    padding: 30px 20px;
}


.site-footer a {
    color: white;               
    text-decoration: none;    
    margin: 0 6px;
    font-weight: 500;
    transition: 0.2s ease;
}


.site-footer a:visited {
    color: white;
}

/* hover effect only */
.site-footer a:hover {
    color: #3b82f6;  
    text-decoration: underline;
}

/* active click */
.site-footer a:active {
    color: #60a5fa;
}

.footer-sub {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.site-footer p {
    line-height: 1.8;
}
