:root {
    --primary-color: #1e3a8a; /* Navy Blue */
    --primary-hover: #1e40af;
    --accent-color: #f59e0b; /* Golden Orange */
    --text-main: #334155; /* Slate 700 */
    --text-heading: #0f172a; /* Slate 900 */
    --bg-main: #ffffff;
    --bg-light: #f8fafc; /* Very light slate */
    --border-color: #e2e8f0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Navbar */
.navbar {
    background: var(--bg-main);
    box-shadow: 0 1px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.3);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
}
.btn-large:hover {
    background-color: #d97706;
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

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

.hero-image {
    flex: 1;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sections Common */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    border-bottom: 4px solid var(--primary-color);
    transition: var(--transition);
}

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

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Book Section */
.book-section {
    padding: 100px 0;
    background: #fff;
}

.book-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.book-image {
    flex: 0 0 35%;
}

.book-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.15);
}

.book-info {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.highlight-badge {
    background-color: #fef3c7;
    color: #92400e;
}

.book-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.book-info h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.book-features ul {
    list-style: none;
    margin: 1.5rem 0 2.5rem;
}

.book-features li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: var(--text-heading);
}

.purchase-action {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.purchase-action .price {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Expertise Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--text-heading);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about {
    flex: 2;
    min-width: 300px;
}
.footer-about h3 {
    color: #fff;
    margin-bottom: 1rem;
}
.footer-about p {
    color: #cbd5e1;
}

.footer-links {
    flex: 1;
}
.footer-links h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
}
.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .hero-container, .book-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
}
