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

:root {
    --primary-color: #1a237e;
    --secondary-color: #ffd700;
    --accent-color: #4a148c;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --gradient-1: linear-gradient(135deg, #1a237e 0%, #4a148c 100%);
    --gradient-2: linear-gradient(135deg, #ffd700 0%, #ff9800 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

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

/* Loading Animation */
.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-animation p {
    color: white;
    font-size: 18px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.install-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: var(--gradient-1);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.03)" d="M0,0 L100,0 L100,100 Z"/></svg>');
    background-size: cover;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-tag {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.2rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.discount {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.lifetime {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-2);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-image {
    animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.book-card {
    position: relative;
}

.book-cover {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    transform: perspective(1000px) rotateY(-10deg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.book-cover:hover {
    transform: perspective(1000px) rotateY(-5deg) scale(1.05);
}

.book-img {
    width: 100%;
    border-radius: calc(var(--radius) - 5px);
    display: block;
    transition: var(--transition);
}

.book-cover:hover .book-img {
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-2);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

.book-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

/* Sections Common */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Books Section */
.books-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.book-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.book-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card:hover .book-image img {
    transform: scale(1.1);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
}

.best-seller {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--gradient-2);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.book-info {
    padding: 20px;
}

.book-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.book-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.book-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--gradient-1);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: calc(var(--radius) - 4px);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    background: var(--gradient-2);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-buy.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.coming-soon {
    opacity: 0.7;
}

.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.stars {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.review-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.reviewer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.reviewer strong {
    color: var(--primary-color);
}

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

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-1);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.03)" d="M0,100 L100,0 L100,100 Z"/></svg>');
    background-size: cover;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.cta-note {
    margin-top: 20px;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-top: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 1001;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    max-width: 350px;
}

.install-prompt.show {
    transform: translateY(0);
    opacity: 1;
}

.install-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.install-content p {
    margin: 0;
    font-weight: 500;
    color: var(--text-dark);
}

.install-buttons {
    display: flex;
    gap: 10px;
}

.btn-install {
    flex: 1;
    padding: 10px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: calc(var(--radius) - 4px);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-install:hover {
    transform: translateY(-2px);
}

.btn-cancel {
    flex: 1;
    padding: 10px;
    background: #f0f0f0;
    color: var(--text-dark);
    border: none;
    border-radius: calc(var(--radius) - 4px);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .install-prompt {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .price-tag {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Motivation Note Style */
.motivation-note{
    margin-top:12px;
    padding:12px 14px;
    border-left:4px solid #10b981;
    background:linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
    border-radius:8px;
    color:#d1fae5;
    font-size:14px;
    line-height:1.6;
    font-weight:500;
    box-shadow:0 0 15px rgba(16,185,129,0.25);
    position:relative;
}

/* optional glow icon */
.motivation-note::before{
    content:"🔥 Note";
    display:block;
    font-size:12px;
    color:#10b981;
    font-weight:bold;
    margin-bottom:5px;
    letter-spacing:1px;
}

/* GRID LAYOUT */
.books-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:24px;
    padding:10px;
}


/* PREMIUM BOOK CARD */
.book-card{
    background:linear-gradient(145deg,#020617,#0f172a);
    border-radius:14px;
    overflow:hidden;
    position:relative;
    transition:0.4s ease;
    border:1px solid rgba(255,255,255,0.05);
}

/* Glow overlay */
.book-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,
        transparent,
        rgba(16,185,129,0.25),
        transparent);
    opacity:0;
    transition:0.5s;
}

.book-card:hover{
    transform:translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.8),
        0 0 25px rgba(16,185,129,0.4);
}

.book-card:hover::before{
    opacity:1;
}


/* IMAGE */
.book-image{
    overflow:hidden;
    position:relative;
}

.book-image img{
    width:100%;
    display:block;
    transition:0.5s;
}

.book-card:hover img{
    transform:scale(1.08);
}


/* BADGE */
.book-overlay{
    position:absolute;
    top:10px;
    left:10px;
}

.best-seller{
    background:#10b981;
    color:black;
    padding:5px 10px;
    border-radius:6px;
    font-size:12px;
    font-weight:bold;
    box-shadow:0 0 10px rgba(16,185,129,0.6);
}


/* BOOK INFO */
.book-info{
    padding:16px;
}

.book-title{
    font-size:18px;
    font-weight:bold;
    margin-bottom:6px;
    color:white;
}

.book-desc{
    font-size:14px;
    color:#94a3b8;
}


/* PRICE */
.book-price{
    margin-top:12px;
    font-size:20px;
    font-weight:bold;
    color:#10b981;
}


/* BUY BUTTON */
.btn-buy{
    display:block;
    margin-top:12px;
    text-align:center;
    padding:11px;
    border-radius:8px;
    background:linear-gradient(135deg,#10b981,#059669);
    color:black;
    font-weight:bold;
    text-decoration:none;
    transition:0.3s;
}

.btn-buy:hover{
    transform:scale(1.05);
    box-shadow:0 0 20px rgba(16,185,129,0.6);
}


/* MOTIVATION NOTE BOX */
.motivation-note{
    margin-top:12px;
    padding:14px 16px;
    border-left:4px solid #10b981;
    background:linear-gradient(135deg, rgba(16,185,129,0.12), rgba(2,6,23,0.8));
    border-radius:10px;
    color:#e2e8f0;
    font-size:14px;
    line-height:1.7;
    font-weight:500;
    box-shadow:
        0 0 12px rgba(16,185,129,0.25),
        inset 0 0 5px rgba(16,185,129,0.15);
    transition:0.3s;
}

.motivation-note:hover{
    transform:translateY(-2px);
    box-shadow:
        0 0 18px rgba(16,185,129,0.45),
        inset 0 0 8px rgba(16,185,129,0.2);
}

.motivation-note::before{
    content:"🗨️ NOTE";
    display:block;
    font-size:12px;
    font-weight:bold;
    color:#10b981;
    margin-bottom:6px;
    letter-spacing:1px;
}