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

:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(20, 26, 42, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-glow: #3b82f6;
    --accent-purple: #8b5cf6;
    --gradient-bg: radial-gradient(circle at top right, #1e3a8a, transparent 40%),
                   radial-gradient(circle at bottom left, #4c1d95, transparent 40%);
    --gradient-text: linear-gradient(135deg, #60a5fa, #c084fc);
    --btn-primary: linear-gradient(135deg, #2563eb, #7c3aed);
    --btn-hover: linear-gradient(135deg, #1d4ed8, #6d28d9);
    --btn-download: linear-gradient(135deg, #10b981, #059669);
    --btn-download-hover: linear-gradient(135deg, #059669, #047857);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: var(--gradient-bg);
    background-attachment: fixed;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Header & Nav */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    background: var(--btn-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 1.2rem;
}

/* Standard Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--btn-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn:hover {
    background: var(--btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-download {
    background: var(--btn-download);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
}

.btn-download:hover {
    background: var(--btn-download-hover);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0 4rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 6rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    animation: fadeUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

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

/* Mockup Container */
.hero-mockup {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.mockup-img {
    max-width: 100%;
    width: 320px;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 8px solid #1e293b;
    z-index: 2;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: 1;
}

/* About Section */
.about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* App Details Page Specifics */
.app-header {
    text-align: center;
    padding-top: 10rem;
    margin-bottom: 4rem;
}

.app-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    padding: 2.5rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: var(--text-secondary);
}

.download-cta {
    text-align: center;
    padding: 5rem 2rem;
    margin-top: 4rem;
}

.download-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

.version-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* AdSense Container */
.ad-container {
    width: 100%;
    text-align: center;
    margin: 2rem auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }
}

.animate-pulse {
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .mockup-img {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .btn {
        width: 100%;
    }
}
