/* style.css - Magbon Landing Page */

/* CSS Variables for Theming */
:root {
    --primary: #E8634A; /* CoralEmber */
    --primary-light: #FF8A72;
    --primary-dark: #BF3E2A;
    --secondary: #7CB476; /* SageLeaf */
    --accent: #F5A623; /* AmberGlow */
    
    --bg-color: #FFF8F0; /* WarmCream */
    --surface: #FFFFFF;
    --surface-alt: #FFF2E8; /* WarmCreamSurface */
    
    --text-main: #3D2C2C; /* ClayText */
    --text-muted: #6B5A5A; /* ClayTextSecondary */
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 10px 40px rgba(61, 44, 44, 0.08);
    --shadow-hover: 0 15px 50px rgba(232, 99, 74, 0.15);
    
    --border-radius: 24px;
    --border-radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-small, .btn-download-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 16px 32px;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(232, 99, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(232, 99, 74, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    color: var(--primary-dark);
}

.btn-primary-small {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    font-size: 0.95rem;
}

.btn-primary-small:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-download-large {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 18px 40px;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(232, 99, 74, 0.4);
    margin: 24px 0;
}

.btn-download-large:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(232, 99, 74, 0.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    box-shadow: var(--shadow-soft);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary-small) {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:not(.btn-primary-small):hover,
.nav-links a:not(.btn-primary-small).active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    animation: float 10s infinite alternate ease-in-out;
}

.shape-2 {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    animation: float 12s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(232, 99, 74, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    animation: bob 4s infinite ease-in-out;
}

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

.floating-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    filter: drop-shadow(0 15px 30px rgba(232, 99, 74, 0.4));
    border-radius: 22.5%;
}

.showcase-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--surface-alt);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), #4CAF50);
    border-radius: 10px;
}

.showcase-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* Section Common */
section:not(.hero) {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

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

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary);
    margin: 16px auto;
    border-radius: 2px;
}

/* Idea Section */
.idea-section {
    background: var(--surface);
}

.hadith-container {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 40px;
    background: var(--surface-alt);
    border-radius: var(--border-radius);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 30px;
}

.hadith-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.5;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hadith-source {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.idea-card {
    background: var(--surface);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.idea-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--surface-alt);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.idea-card:hover .icon-circle {
    background: var(--primary);
    color: white;
}

.idea-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.idea-card p {
    color: var(--text-muted);
}

/* Features Section */
.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glass-feature-box {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(232, 99, 74, 0.3);
}

.glass-feature-box.accent {
    background: linear-gradient(135deg, var(--accent), #FFC66D);
    box-shadow: 0 20px 40px rgba(245, 166, 35, 0.3);
}

.glass-feature-box.soft {
    background: linear-gradient(135deg, var(--secondary), #9FD49A);
    box-shadow: 0 20px 40px rgba(124, 180, 118, 0.3);
}

.feature-hero-icon {
    font-size: 4rem;
    color: white;
}

.pulse-ring {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: pulse 2s infinite ease-out;
}

.pulse-ring.outline {
    background: transparent;
    border: 2px solid var(--accent);
    animation: pulse-outline 2s infinite ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pulse-outline {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.feature-list li i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Download Section */
.download-section {
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.download-card {
    background: linear-gradient(135deg, #1A1A2E, #2A2A4A);
    border-radius: 40px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 30px 60px rgba(26, 26, 46, 0.4);
    position: relative;
    overflow: hidden;
}

.download-content {
    flex: 1;
    color: white;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.version-info {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
}

.download-mockup {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-mockup {
    width: 200px;
    height: 200px;
    border-radius: 40px;
    animation: bob 3s infinite ease-in-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Footer */
.footer {
    background: var(--bg-color);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

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

.footer-links h4, .footer-legal h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 12px;
}

.footer-links a, .footer-legal a {
    color: var(--text-muted);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--primary);
    padding-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .feature-list li {
        justify-content: center;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .download-mockup {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        padding: 20px;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 16px auto 0;
    }
    
    .hadith-text {
        font-size: 1.5rem;
    }
}
