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

:root {
    --primary-color: #0a0e27;
    --secondary-color: #1a1f3a;
    --accent-color: #d97706;
    --accent-gold: #f59e0b;
    --accent-purple: #7c3aed;
    --bg-color: #0f1420;
    --bg-light: #1a1f3a;
    --text-color: #e5e7eb;
    --text-secondary: #9ca3af;
    --border-color: #374151;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 16px rgba(217, 119, 6, 0.3);
    --gradient-cosmic: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d1b3d 100%);
    --gradient-nebula: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #7c3aed 100%);
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--gradient-cosmic);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px; /* Space for fixed navbar */
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 90%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(217, 119, 6, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    background: var(--gradient-nebula);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link-cta {
    background: var(--gradient-nebula);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gradient-nebula);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.book-cover-container {
    flex: 0 0 auto;
    animation: fadeInUp 0.8s ease-out, float 6s ease-in-out infinite;
}

.book-cover {
    width: 280px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(217, 119, 6, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
                0 0 60px rgba(217, 119, 6, 0.5),
                0 0 100px rgba(124, 58, 237, 0.3);
}

.hero-text {
    flex: 1;
    text-align: right;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.badge {
    display: inline-block;
    background: var(--gradient-nebula);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    background: var(--gradient-nebula);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.author {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Floating animation for book cover */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Content Sections */
.content {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.section {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
}

.description {
    font-size: 1.25rem;
    line-height: 2;
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.text {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-secondary);
    text-align: justify;
}

/* Reasons Section */
.reasons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.reason {
    background: var(--gradient-nebula);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 400;
    text-align: center;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.reason:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.5);
}

/* Features Section */
.features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: rgba(26, 31, 58, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature:hover {
    background-color: rgba(26, 31, 58, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.2);
}

.feature-icon {
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.feature p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* Audience Section */
.audience-section {
    margin: 2.5rem 0;
}

.audience-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.audience-list {
    display: grid;
    gap: 1rem;
}

.audience-item {
    padding: 1rem 1.5rem;
    background-color: rgba(26, 31, 58, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.125rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    padding-right: 3rem;
    backdrop-filter: blur(10px);
}

.audience-item::before {
    content: "•";
    position: absolute;
    right: 1.5rem;
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: bold;
}

.audience-item:hover {
    border-color: var(--accent-color);
    background-color: rgba(26, 31, 58, 0.6);
}

.not-for .audience-item {
    border-color: rgba(239, 68, 68, 0.5);
    background-color: rgba(127, 29, 29, 0.2);
}

.not-for .audience-item::before {
    content: "×";
    color: #ef4444;
}

.not-for .audience-item:hover {
    border-color: #ef4444;
}

.closing-text {
    font-size: 1.25rem;
    line-height: 2;
    text-align: center;
    color: var(--text-color);
    font-weight: 500;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Author Section */
.author-section {
    margin: 4rem 0;
}

.author-content {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(26, 31, 58, 0.6);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.1);
}

.author-header {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.author-photo-container {
    flex: 0 0 280px;
    position: relative;
}

.author-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(217, 119, 6, 0.3);
    border: 3px solid rgba(217, 119, 6, 0.3);
    transition: all 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
                0 0 60px rgba(217, 119, 6, 0.5);
    border-color: rgba(217, 119, 6, 0.6);
}

.author-bio {
    flex: 1;
}

.author-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-nebula);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bio-text {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.bio-text strong {
    color: var(--accent-gold);
    font-weight: 600;
}

.author-credentials {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(217, 119, 6, 0.2);
    border-bottom: 1px solid rgba(217, 119, 6, 0.2);
    width: 100%;
}

.author-content > .bio-text {
    margin-top: 1rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(217, 119, 6, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.credential-item:hover {
    background: rgba(217, 119, 6, 0.1);
    transform: translateX(-5px);
}

.credential-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.credential-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-top: 4rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.1);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-nebula);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Signup Form */
.signup-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background-color: rgba(10, 14, 39, 0.6);
    color: var(--text-color);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.2);
}

.btn-primary {
    background: var(--gradient-nebula);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.6);
}

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

.form-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(217, 119, 6, 0.2);
    margin-top: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(26, 31, 58, 0.5);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    color: var(--accent-gold);
    background: rgba(217, 119, 6, 0.2);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 0;
        border-bottom: 1px solid rgba(217, 119, 6, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }

    .nav-link-cta {
        display: inline-block;
        margin-top: 1rem;
    }

    body {
        padding-top: 70px;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .hero {
        padding: 2rem 0 2rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .book-cover {
        width: 220px;
    }

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

    .title {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    .author {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .description {
        font-size: 1.125rem;
    }

    .text {
        font-size: 1rem;
    }

    .reason {
        font-size: 1.125rem;
        padding: 1.25rem 1.5rem;
    }

    .feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature p {
        font-size: 1rem;
    }

    .audience-item {
        font-size: 1rem;
        padding-right: 2.5rem;
    }

    .audience-item::before {
        right: 1rem;
    }

    .closing-text {
        font-size: 1.125rem;
        padding: 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .form-group {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }

    .author-content {
        padding: 2rem 1.5rem;
    }

    .author-header {
        flex-direction: column;
        gap: 2rem;
    }

    .author-photo-container {
        flex: 0 0 auto;
        width: 200px;
        margin: 0 auto;
    }

    .author-name {
        font-size: 1.75rem;
    }

    .bio-text {
        font-size: 1rem;
    }

    .credential-item {
        flex-direction: row;
        text-align: right;
    }

    .credential-item p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .book-cover {
        width: 180px;
    }

    .title {
        font-size: 1.85rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .author {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .author-content {
        padding: 1.5rem 1rem;
    }

    .author-photo-container {
        width: 160px;
    }

    .author-name {
        font-size: 1.5rem;
    }

    .bio-text {
        font-size: 0.95rem;
    }

    .credential-icon {
        font-size: 1.25rem;
    }

    .credential-item p {
        font-size: 0.9rem;
    }
}

/* RTL Support */
[dir="rtl"] .feature {
    flex-direction: row-reverse;
}

[dir="rtl"] .audience-item::before {
    right: auto;
    left: 1.5rem;
}

@media (max-width: 768px) {
    [dir="rtl"] .audience-item::before {
        right: auto;
        left: 1rem;
    }
}
