@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #E50914;
    --primary-hover: #b3070f;
    --secondary: #FF3B3B;
    --bg-color: #050505;
    --surface: #111111;
    --card-bg: #171717;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-color: #FFFFFF;
    --text-secondary: #B3B3B3;
    --gradient-primary: linear-gradient(135deg, #E50914 0%, #FF3B3B 100%);
    --gradient-dark: linear-gradient(180deg, #111111 0%, #050505 100%);
    --glow-shadow: 0 0 20px rgba(229, 9, 20, 0.25);
    --glow-shadow-strong: 0 0 35px rgba(229, 9, 20, 0.5);
    
    --font-heading: 'Cinzel', serif;
    --font-subheading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Global Reset & Base Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

h2.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.subheading-font, .text-uppercase-header {
    font-family: var(--font-subheading);
    font-weight: 600;
    letter-spacing: 0.5px;
}

p, span, li, a, td, th {
    font-family: var(--font-body);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Premium Card Styles */
.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: var(--glow-shadow);
}

.premium-card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.premium-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.premium-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.premium-card-body {
    padding: 24px;
}

.premium-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.premium-card-subtitle {
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Premium Buttons */
.btn-premium {
    background: var(--gradient-primary);
    color: #FFFFFF;
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow-strong);
    background: linear-gradient(135deg, #FF3B3B 0%, #E50914 100%);
}

.btn-premium-outline {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid var(--primary);
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 10px 26px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium-outline:hover {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

/* Sticky Navigation bar styling */
.premium-navbar {
    background: rgba(5, 5, 5, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.premium-navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.95) !important;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    font-family: var(--font-subheading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 20px);
}

/* Luxury Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 30%, rgba(229, 9, 20, 0.12) 0%, rgba(5, 5, 5, 1) 70%);
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    animation: floatAround 20s infinite ease-in-out alternate;
}

.shape-1 { width: 400px; height: 400px; top: 10%; right: 10%; animation-duration: 25s; }
.shape-2 { width: 300px; height: 300px; bottom: 10%; left: 5%; animation-duration: 18s; }
.shape-3 { width: 250px; height: 250px; top: 50%; right: 50%; animation-duration: 22s; }

@keyframes floatAround {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 600px;
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.trust-item h4 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom Footer */
.premium-footer {
    background-color: #0c0c0c;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
}

.footer-brand img {
    height: 45px;
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 1rem;
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: #FFFFFF;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-color);
    padding-left: 5px;
}

.copyright-section {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 50px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Customer Dashboard Cards */
.dashboard-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 20px;
}

.stat-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.testimonial-user {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #333;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-weight: bold;
}

.testimonial-name {
    font-family: var(--font-subheading);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Category Badge Grid */
.category-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: var(--glow-shadow);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Secure Ebook Reader Styling */
.reader-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #0a0a0a;
}

.reader-header {
    background-color: #111;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reader-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.reader-sidebar {
    width: 280px;
    background-color: #111;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.reader-sidebar.collapsed {
    margin-left: -280px;
}

.reader-content-pane {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.pdf-canvas-container {
    background: #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    max-width: 100%;
}

.reader-controls-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
}

/* Accordion FAQs customization */
.accordion-item {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    margin-bottom: 12px;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--card-bg) !important;
    color: #FFFFFF !important;
    font-family: var(--font-subheading);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: none !important;
    padding: 20px !important;
}

.accordion-button:not(.collapsed) {
    border-bottom: 1px solid var(--border-color);
    background: rgba(229, 9, 20, 0.05) !important;
}

.accordion-body {
    background-color: var(--surface);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 20px !important;
}

/* Custom badges */
.badge-streak {
    background-color: #ff9800;
    color: #000;
    font-weight: 700;
}

.badge-vampire {
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
}
