/* ===================================
   مكتبة الأيسر - Main Stylesheet
   Professional Kindergarten Book Library
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1B4965;
    --primary-light: #2D6A8F;
    --primary-dark: #0F2D40;
    --secondary: #62B6CB;
    --secondary-light: #8DD0E0;
    --accent: #F4A261;
    --accent-hover: #E76F51;
    --gold: #FFD700;
    --success: #2ECC71;
    --whatsapp: #25D366;
    --whatsapp-hover: #1DA851;
    --facebook: #1877F2;
    --facebook-hover: #0C5DC7;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-section: #F1F5F9;
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Book colors */
    --book-arabic: #1B6B93;
    --book-math: #4D6A3B;
    --book-english: #8B4513;
    --enrichment-arabic: #7B2D8E;
    --enrichment-math: #C2571A;
    --enrichment-english: #2C5F7C;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ===== UTILITY CLASSES ===== */
.highlight {
    color: var(--accent);
    position: relative;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    margin: 0 auto;
    border-radius: 2px;
}

.section-description {
    color: var(--text-medium);
    font-size: 1.05rem;
    margin-top: 16px;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-logo i {
    font-size: 1.6rem;
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-medium);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(27, 73, 101, 0.06);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 18px;
    left: 18px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
    overflow: hidden;
    padding: 100px 24px 60px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--gold);
    top: 30%;
    left: 10%;
    animation: float 12s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--secondary-light);
    bottom: 20%;
    right: 15%;
    animation: float 9s ease-in-out infinite reverse;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: white;
    top: 20%;
    right: 30%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hero-badge i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-title .highlight {
    color: var(--accent);
    text-shadow: 0 2px 20px rgba(244, 162, 97, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-number::after {
    content: '+';
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content {
    margin-bottom: 80px;
}

.about-text-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.about-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.about-card:hover::before {
    transform: scaleX(1);
}

.about-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(-5deg);
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(98, 182, 203, 0.15), rgba(27, 73, 101, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.3rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: rotate(-10deg) scale(1.1);
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== REVIEWS ===== */
.reviews-section {
    margin-top: 20px;
}

.reviews-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.reviews-title i {
    color: var(--accent);
    font-size: 1.3rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 4rem;
    color: rgba(244, 162, 97, 0.12);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(98, 182, 203, 0.3);
}

.review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}

.review-stars i {
    color: var(--gold);
    font-size: 0.95rem;
}

.review-text {
    font-size: 0.93rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 18px;
    min-height: 80px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.author-info span {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.product-row {
    margin-bottom: 48px;
}

.product-row:last-child {
    margin-bottom: 0;
}

.product-row-title {
    text-align: center;
    margin-bottom: 24px;
}

.level-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 8px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

/* Book Card - 3D Flip */
.book-card {
    perspective: 1200px;
    cursor: pointer;
    height: 380px;
}

.book-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.book-card.flipped .book-inner {
    transform: rotateY(180deg);
}

[dir="rtl"] .book-card.flipped .book-inner {
    transform: rotateY(-180deg);
}

.book-front,
.book-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.book-front {
    z-index: 2;
}

.book-back {
    transform: rotateY(180deg);
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed var(--border-color);
}

[dir="rtl"] .book-back {
    transform: rotateY(-180deg);
}

/* Book Cover Placeholder */
.book-cover-placeholder {
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 12px;
    box-sizing: border-box;
}

.book-cover-placeholder img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.book-cover-design {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    overflow: hidden;
}

.book-cover-design::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Book type colors */
.book-type {
    background: linear-gradient(135deg, var(--book-arabic), #247BA0);
}

.book-type.math {
    background: linear-gradient(135deg, var(--book-math), #6B8F5B);
}

.book-type.english {
    background: linear-gradient(135deg, var(--book-english), #A0522D);
}

.enrichment-type {
    background: linear-gradient(135deg, var(--enrichment-arabic), #9B59B6);
}

.enrichment-type.math {
    background: linear-gradient(135deg, var(--enrichment-math), #E67E22);
}

.enrichment-type.english {
    background: linear-gradient(135deg, var(--enrichment-english), #3498DB);
}

.book-cover-design i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.book-cover-design h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.book-cover-design .book-level {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 16px;
    border-radius: 50px;
    position: relative;
    z-index: 1;
}

.book-cover-design .book-brand {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    position: absolute;
    bottom: 16px;
    z-index: 1;
}

.book-label {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Book Back / Content */
.book-content-placeholder {
    text-align: center;
    color: var(--text-medium);
}

.book-content-placeholder img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.book-content-placeholder i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.book-content-placeholder p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.book-content-placeholder span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.flip-back-btn {
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flip-back-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Book card hover effects */
.book-card:not(.flipped):hover .book-inner {
    transform: rotateY(8deg);
    box-shadow: var(--shadow-xl);
}

[dir="rtl"] .book-card:not(.flipped):hover .book-inner {
    transform: rotateY(-8deg);
}

.book-card:not(.flipped):hover .book-front {
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-section);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.phone-number {
    font-size: 1.05rem !important;
    font-weight: 600;
    color: var(--primary) !important;
    margin-bottom: 4px;
}

/* Delivery Banner */
.contact-delivery-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    margin-bottom: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-delivery-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: float 6s infinite;
}

.delivery-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.delivery-text {
    position: relative;
    z-index: 1;
}

.delivery-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.delivery-text p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Contact Buttons */
.contact-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: var(--transition);
}

.contact-btn:hover::before {
    background: rgba(255, 255, 255, 0.1);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.contact-btn i {
    font-size: 1.5rem;
}

.whatsapp-btn {
    background: linear-gradient(135deg, var(--whatsapp), #1EBE55);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, var(--whatsapp-hover), #18A04A);
}

.facebook-btn {
    background: linear-gradient(135deg, var(--facebook), #4A90D9);
}

.facebook-btn:hover {
    background: linear-gradient(135deg, var(--facebook-hover), #3A7BC8);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand h3 i {
    color: var(--accent);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 350px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 8px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--accent);
    width: 18px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-4px);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 998;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background: var(--whatsapp-hover);
    transform: scale(1.1);
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .about-text-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Tablet Small */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: stretch;
        padding: 90px 24px 24px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-slow);
        gap: 4px;
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        padding: 12px 18px;
        font-size: 1.05rem;
        border-radius: var(--radius-sm);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 28px;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .product-pair {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-delivery-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 90px 16px 50px;
        min-height: auto;
        min-height: 100svh;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        justify-content: center;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .section-tag {
        font-size: 0.78rem;
        padding: 5px 14px;
    }

    .about-section,
    .products-section,
    .contact-section {
        padding: 60px 0;
    }

    .about-card {
        padding: 28px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature-item {
        padding: 20px 12px;
    }

    .feature-item h4 {
        font-size: 0.88rem;
    }

    .book-card {
        height: 340px;
    }

    .book-cover-design h4 {
        font-size: 1.1rem;
    }

    .level-badge {
        font-size: 0.9rem;
        padding: 6px 20px;
    }

    .contact-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .review-card {
        padding: 20px;
    }

    .review-text {
        font-size: 0.88rem;
        min-height: auto;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 20px;
        left: 16px;
    }

    .back-to-top {
        bottom: 80px;
        left: 16px;
        width: 42px;
        height: 42px;
    }

    .scroll-indicator {
        bottom: 16px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        height: 300px;
    }

    .book-cover-design i {
        font-size: 2rem;
    }

    .book-cover-design h4 {
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    .whatsapp-float,
    .scroll-indicator {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px;
    }

    body {
        color: black;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.book-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius:12px;
}

/* Book Content Slider Styles */
.book-content-slider {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.slider-img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    object-fit: contain;
    z-index: 1;
    padding: 8px;
    box-sizing: border-box;
}

.slider-img.active {
    opacity: 1;
    z-index: 2;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 4px;
}

.slider-controls button {
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.slider-controls button:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.slider-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    direction: ltr;
}
