/* ========================================
   Nurli Landing Page Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Background Colors */
    --bg-gradient-top: #0A0E21;
    --bg-gradient-bottom: #1A1F3A;
    --card-bg-dark: rgba(30, 30, 30, 0.85);
    --card-bg-light: #FFFFFF;
    
    /* Gold Accent Colors */
    --gold-primary: #D4AF37;
    --gold-light: #F4D35E;
    --gold-dark: #B8860B;
    --gold-deep: #996515;
    
    /* Text Colors - Dark Mode */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', sans-serif;
    
    /* Spacing */
    --nav-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease-out;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-gradient-bottom) 100%);
    color: var(--text-primary);
    height: 100vh;
    line-height: 1.6;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) translateX(10px);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-15px) translateX(-15px);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-40px) translateX(5px);
        opacity: 0.2;
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 14, 33, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo:hover {
    color: var(--gold-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover {
    color: var(--gold-primary);
}

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: transform var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 20px) 24px 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    position: relative;
    animation: fadeIn var(--transition-slow) forwards;
}

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

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.arabic-decoration {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 24px;
    color: var(--gold-primary);
    margin-bottom: 24px;
    opacity: 0.9;
    letter-spacing: 0.05em;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 8vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    color: #000000;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 14px;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.4);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    animation: fadeIn 0.8s ease-out 0.5s backwards;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.5);
}

.download-btn:active {
    transform: translateY(0);
}

.apple-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.download-small {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.download-large {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 1px;
}

/* App Preview Mockup */
.app-preview {
    margin-top: 80px;
    animation: fadeIn 1s ease-out 0.7s backwards;
}

.phone-mockup {
    width: 280px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.95));
    border-radius: 36px;
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
    background: linear-gradient(180deg, var(--bg-gradient-top), var(--bg-gradient-bottom));
    border-radius: 26px;
    padding: 40px 24px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.screen-header {
    margin-bottom: 24px;
}

.mood-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.screen-arabic {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 22px;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 20px;
    direction: rtl;
}

.screen-translation {
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.screen-footer {
    margin-top: auto;
}

.surah-name {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 24px;
    background: rgba(10, 14, 33, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-arabic {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 18px;
    color: var(--gold-primary);
    opacity: 0.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .nav-links {
        gap: 28px;
    }
    
    .hero-glow {
        width: 400px;
        height: 400px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--bg-gradient-top), var(--bg-gradient-bottom));
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        padding: 24px;
        transform: translateX(100%);
        transition: transform var(--transition-medium);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        font-size: 18px;
    }
    
    .hero {
        padding: calc(var(--nav-height) + 16px) 20px 16px;
    }
    
    .arabic-decoration {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        margin-bottom: 32px;
        font-size: 15px;
    }
    
    .download-btn {
        padding: 12px 28px;
    }
    
    .footer {
        padding: 16px 20px;
    }
    
    .footer-container {
        gap: 8px;
    }
    
    .footer-arabic {
        font-size: 16px;
    }
    
    .footer-links {
        gap: 16px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .copyright {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .arabic-decoration {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .download-btn {
        padding: 10px 24px;
        gap: 10px;
    }
    
    .apple-icon {
        width: 24px;
        height: 24px;
    }
    
    .download-large {
        font-size: 17px;
    }
    
    .footer {
        padding: 12px 16px;
    }
    
    .footer-arabic {
        display: none;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle {
        animation: none;
        opacity: 0.1;
    }
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold-primary);
    color: #000;
    padding: 8px 16px;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   Content Pages Styles
   ======================================== */

/* Page Body - allows scrolling */
.page-body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
}

/* Page Content */
.page-content {
    padding: calc(var(--nav-height) + 60px) 24px 80px;
    position: relative;
    z-index: 1;
}

.content-container {
    max-width: 720px;
    margin: 0 auto;
    animation: fadeIn var(--transition-slow) forwards;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 6vw, 44px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(18px, 3vw, 22px);
    color: var(--gold-primary);
    font-weight: 500;
}

.last-updated {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 16px;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.intro-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-section p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* Links */
.link {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Active Nav Link */
.nav-links a.active {
    color: var(--gold-primary);
}

/* Lists */
.bullet-list,
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
}

.info-list li {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-list li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 20px;
}

.feature-list li {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.feature-list li strong {
    display: block;
    font-size: 17px;
    color: var(--gold-primary);
    margin-bottom: 6px;
}

.feature-list li span {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Quote Block */
.verse-quote {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-left: 3px solid var(--gold-primary);
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin: 24px 0;
}

.verse-quote p {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.verse-quote cite {
    font-size: 14px;
    color: var(--gold-primary);
    font-style: normal;
}

/* FAQ Styles */
.faq-list {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.faq-question {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact-section .note {
    font-size: 14px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* ========================================
   Content Pages Responsive
   ======================================== */

@media (max-width: 768px) {
    .page-content {
        padding: calc(var(--nav-height) + 40px) 20px 60px;
    }
    
    .page-header {
        margin-bottom: 36px;
    }
    
    .content-section {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .intro-text {
        font-size: 16px;
    }
    
    .feature-list li {
        padding: 16px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .verse-quote {
        padding: 20px;
    }
    
    .verse-quote p {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .page-content {
        padding: calc(var(--nav-height) + 24px) 16px 48px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 20px;
    }
}
