@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;800&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #0d0f1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a8be;
    --accent-blue: #00d2ff;
    --accent-purple: #7a28cb;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    flex: 1 0 auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at top left, rgba(122, 40, 203, 0.15) 0%, transparent 40%),
        radial-gradient(circle at bottom right, rgba(0, 210, 255, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Classes */
.glass-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 15, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.15;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.25;
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 40, 203, 0.4);
}

.btn-glass {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-purple);
}

.btn-outline:hover {
    background: var(--accent-purple);
    transform: translateY(-2px);
}

.w-full {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 20px;
}

/* Programs Section */
.programs-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: 0;
}

.blue-glow {
    background: var(--accent-blue);
}

.purple-glow {
    background: var(--accent-purple);
}

.program-icon {
    width: 240px;
    /* Massive Home Page Icon */
    height: 240px;
    margin: 0 auto 30px;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border: 1px solid var(--glass-border);
    object-fit: contain;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.program-title {
    font-family: var(--font-en);
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.program-desc {
    color: var(--text-secondary);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.features-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-blue);
    font-weight: bold;
}

/* --- Page Header & Content --- */
.page-header {
    position: relative;
    padding: 140px 0 60px;
    text-align: center;
    overflow: hidden;
    /* Contain the glow */
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.content-section {
    padding: 60px 0 100px;
}

.contact-section {
    padding: 80px 0;
}

.contact-card {
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.blog-list-section {
    padding: 60px 0 100px;
}

.blog-post-card {
    padding: 30px;
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: scale(1.02);
}

.blog-content blockquote {
    background: var(--glass-bg);
    border-left: 4px solid var(--accent-blue);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 12px 12px 0;
}

.policy-container.blog-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.policy-container h1,
.policy-container h2,
.policy-container h3 {
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.policy-container p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* --- App Landing Page Specific Styles --- */

.app-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 50px;
}

.blue-glow-large {
    width: 50vw;
    height: 50vw;
    top: -10%;
    left: -10%;
}

.app-hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.app-hero-text {
    flex: 1;
}

.app-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-hero-text .hero-title {
    font-size: 3.5rem;
    text-align: left;
    margin-bottom: 20px;
}

.app-hero-text .hero-subtitle {
    text-align: left;
    margin: 0 0 30px;
    font-size: 1.2rem;
}

.app-hero-features {
    margin-bottom: 40px;
}

.app-hero-features li {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.2rem;
}

.trial-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 15px;
    margin-left: 10px;
}

.app-hero-image {
    flex: 1;
    perspective: 1000px;
}

.image-glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 15px;
    /* Minimal padding to let image fill space */
    box-shadow: 0 50px 120px -20px rgba(0, 0, 0, 0.8);
    transform: rotateY(-12deg) rotateX(6deg);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-width: 950px;
    /* Much wider for details */
    margin: 0 auto;
}

.image-glass-container:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.screenshot-placeholder {
    width: 100%;
    min-height: 550px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 20px;
}

.large-app-icon {
    width: 600px;
    /* Radical size Increase */
    height: auto;
    max-height: 600px;
    margin-bottom: 25px;
    border-radius: 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    transition: transform 0.4s ease;
}

.large-app-icon:hover {
    transform: scale(1.03);
}

.screenshot-placeholder p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 15px;
}

/* Feature Rows */
.app-details-section {
    padding: 80px 0;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: -40px;
    margin-bottom: 60px;
}

.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature-row.reversed {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.feature-image-box {
    flex: 1;
}

.glass-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
}

.cta-card {
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(13, 15, 26, 0.8), rgba(122, 40, 203, 0.2));
    border-color: rgba(122, 40, 203, 0.3);
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Responsive Updates for Landing Page */
@media (max-width: 992px) {

    .app-hero-content,
    .feature-row,
    .feature-row.reversed {
        flex-direction: column;
    }

    .app-hero-text .hero-title,
    .app-hero-text .hero-subtitle {
        text-align: center;
    }

    .app-hero-features {
        display: inline-block;
        text-align: left;
    }

    .hero-buttons {
        text-align: center;
    }

    .image-glass-container {
        transform: none;
        margin-top: 40px;
    }
}

/* AdSense Placeholder */
.ads-container {
    margin: 50px auto;
}

.ads-placeholder {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 40px 0;
    margin-top: auto;
    /* Push to bottom */
    font-family: var(--font-en);
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    /* Subtle distinction */
}

.text-center {
    text-align: center;
}

.footer-links a,
.footer-links a:visited {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: none !important;
    color: #ffffff !important;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu toggle needed later */
}