/* Enhanced Beyond The Fables Styles */

/* Import base styles */
@import url('style.css');

/* Enhanced Color Palette with Subtle Variants */
:root {
    /* Original colors */
    --primary-dark: #1a1a1a;
    --primary-red: #993b3b;
    --accent-red: #993b3b;
    --pure-white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #888888;
    
    /* New subtle variants */
    --dark-gradient: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
    --dark-surface: #212121;
    --dark-elevated: #2a2a2a;
    --dark-highlight: #333333;
    
    --red-light: #aa4c4c;
    --red-dark: #883030;
    --red-gradient: linear-gradient(135deg, #993b3b 0%, #aa4c4c 100%);
    --red-shadow: rgba(153, 59, 59, 0.3);
    
    --gray-gradient: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    --subtle-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --glow-shadow: 0 4px 20px rgba(153, 59, 59, 0.3);
    
    /* Enhanced shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.6);
    
    /* Business-specific subtle color variations */
    --books-accent: #a64d4d;
    --books-bg: rgba(166, 77, 77, 0.08);
    --books-border: rgba(166, 77, 77, 0.2);
    
    --forge-accent: #8b6914;
    --forge-bg: rgba(139, 105, 20, 0.08);
    --forge-border: rgba(139, 105, 20, 0.2);
    
    --apps-accent: #4a6fa5;
    --apps-bg: rgba(74, 111, 165, 0.08);
    --apps-border: rgba(74, 111, 165, 0.2);
}

/* Global Enhancements */
body {
    background: var(--dark-gradient);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(153, 59, 59, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(153, 59, 59, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(153, 59, 59, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
}

/* Enhanced Header */
.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(153, 59, 59, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Brand Logo Styling */
.brand-logo {
    height: 80px;
    max-width: 400px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: drop-shadow(0 2px 12px rgba(153, 59, 59, 0.4));
    transform: scale(1.05);
}

/* Brand Text Styling (fallback) */
.brand-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--pure-white);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.brand-accent {
    color: var(--accent-red);
}

.nav-links a {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--red-gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-red);
    text-shadow: 0 0 20px rgba(153, 59, 59, 0.5);
}

/* Enhanced Hero Section */
.hero {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(153, 59, 59, 0.1) 0%, transparent 70%);
    animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(10%, 10%) scale(1.1); opacity: 0.8; }
}

.hero-title {
    background: linear-gradient(135deg, #993b3b 0%, #cc5252 50%, #993b3b 100%);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(153, 59, 59, 0.5);
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.cta-button {
    background: var(--red-gradient);
    box-shadow: 0 4px 15px rgba(153, 59, 59, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(153, 59, 59, 0.5);
}

/* Enhanced Floating Books */
.floating-book {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-book:hover {
    transform: translateY(-10px) rotate(5deg) scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(153, 59, 59, 0.4));
}

/* Enhanced Collections Section */
.collections {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #1f1f1f 100%);
    position: relative;
}

.collections::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(153, 59, 59, 0.5), transparent);
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--red-gradient);
    border-radius: 2px;
}

/* Enhanced Category Buttons */
.category-btn {
    background: var(--gray-gradient);
    border: 1px solid rgba(153, 59, 59, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(153, 59, 59, 0.3) 0%, transparent 70%);
    transition: all 0.5s;
    transform: translate(-50%, -50%);
}

.category-btn:hover::before,
.category-btn.active::before {
    width: 100%;
    height: 100%;
}

.category-btn.active {
    background: var(--red-gradient);
    border-color: var(--accent-red);
    box-shadow: 0 4px 15px rgba(153, 59, 59, 0.4);
}

/* Enhanced Collection Cards */
.collection-card {
    background: var(--gray-gradient);
    border: 1px solid rgba(153, 59, 59, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(153, 59, 59, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.collection-card:hover::before {
    opacity: 1;
}

.collection-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(153, 59, 59, 0.3);
    border-color: rgba(153, 59, 59, 0.3);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover .card-image img {
    transform: scale(1.1);
}

/* Card overlay for badges and volume indicators */
.card-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
}

.volume-count {
    background: var(--accent-red);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Special badges */
.special-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: white;
}

.special-badge.new {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    animation: badgePulse 2s infinite;
}

.special-badge.bestseller {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
}

.special-badge.limited {
    background: linear-gradient(45deg, #ff7675, #fd79a8);
}

.special-badge.featured {
    background: linear-gradient(45deg, #fd79a8, #e84393);
}

.special-badge.popular {
    background: linear-gradient(45deg, #a29bfe, #6c5ce7);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.card-content {
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 26, 0.5) 100%);
}

.card-content h3 {
    color: var(--pure-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tag {
    background: rgba(153, 59, 59, 0.2);
    border: 1px solid rgba(153, 59, 59, 0.3);
    color: var(--red-light);
    font-weight: 500;
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(153, 59, 59, 0.3);
    transform: translateY(-2px);
}

.buy-button {
    background: var(--red-gradient);
    box-shadow: 0 4px 12px rgba(153, 59, 59, 0.3);
    position: relative;
    overflow: hidden;
}

.buy-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
}

.buy-button:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Enhanced About Section */
.about {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(153, 59, 59, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(153, 59, 59, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.feature {
    background: var(--gray-gradient);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(153, 59, 59, 0.2);
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(153, 59, 59, 0.2);
    border-color: rgba(153, 59, 59, 0.4);
}

/* Enhanced Contact Section */
.contact {
    background: linear-gradient(135deg, #993b3b 0%, #aa4c4c 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: contactGlow 20s linear infinite;
}

@keyframes contactGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-button {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(to bottom, var(--primary-dark) 0%, #0f0f0f 100%);
    border-top: 1px solid rgba(153, 59, 59, 0.2);
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
@keyframes loadingPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.loading {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-gradient);
    border-radius: 6px;
    border: 2px solid var(--primary-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-gradient);
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    margin-bottom: 2rem;
    animation: loaderPulse 2s ease-in-out infinite;
}

.loader-logo img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(153, 59, 59, 0.3));
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: var(--red-gradient);
    width: 0;
    animation: loadProgress 2s ease-out forwards;
    box-shadow: 0 0 10px rgba(153, 59, 59, 0.5);
}

@keyframes loadProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Enhanced responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .collection-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* Business-specific color styling - Must come after base styles to override */

/* CTA Button Business-specific Colors */
.cta-button.primary {
    background: var(--books-accent) !important;
    color: white !important;
}

.cta-button.secondary {
    background: transparent !important;
    color: var(--forge-accent) !important;
    border: 2px solid var(--forge-accent) !important;
}

.cta-button.tertiary {
    background: var(--apps-accent) !important;
    color: white !important;
    border: 2px solid var(--apps-accent) !important;
}

.cta-button.primary:hover {
    background: #b85555 !important;
    box-shadow: 0 8px 32px rgba(166, 77, 77, 0.3) !important;
}

.cta-button.secondary:hover {
    background: var(--forge-accent) !important;
    color: white !important;
    box-shadow: 0 8px 32px rgba(139, 105, 20, 0.3) !important;
}

.cta-button.tertiary:hover {
    background: #5a7ab7 !important;
    color: white !important;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.3) !important;
}

/* Business Cards - Books */
.business-card[data-business="books"] {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%) !important;
    border-color: var(--books-border) !important;
    position: relative;
}

.business-card[data-business="books"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--books-bg);
    z-index: 0;
    border-radius: inherit;
}

.business-card[data-business="books"] > * {
    position: relative;
    z-index: 1;
}

.business-card[data-business="books"]:hover {
    border-color: var(--books-accent) !important;
    box-shadow: 0 15px 40px rgba(166, 77, 77, 0.25) !important;
}

.business-card[data-business="books"] h3 {
    color: var(--books-accent) !important;
}

.business-card[data-business="books"] .stat {
    background: rgba(166, 77, 77, 0.15) !important;
    border-color: var(--books-border) !important;
}

.business-card[data-business="books"] .business-btn {
    background: var(--books-accent) !important;
}

.business-card[data-business="books"] .business-btn:hover {
    background: #b85555 !important;
}

/* Business Cards - Forge */
.business-card[data-business="forge"] {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%) !important;
    border-color: var(--forge-border) !important;
    position: relative;
}

.business-card[data-business="forge"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--forge-bg);
    z-index: 0;
    border-radius: inherit;
}

.business-card[data-business="forge"] > * {
    position: relative;
    z-index: 1;
}

.business-card[data-business="forge"]:hover {
    border-color: var(--forge-accent) !important;
    box-shadow: 0 15px 40px rgba(139, 105, 20, 0.25) !important;
}

.business-card[data-business="forge"] h3 {
    color: var(--forge-accent) !important;
}

.business-card[data-business="forge"] .stat {
    background: rgba(139, 105, 20, 0.15) !important;
    border-color: var(--forge-border) !important;
}

.business-card[data-business="forge"] .business-btn {
    background: var(--forge-accent) !important;
}

.business-card[data-business="forge"] .business-btn:hover {
    background: #a67c18 !important;
}

/* Business Cards - Apps */
.business-card[data-business="apps"] {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%) !important;
    border-color: var(--apps-border) !important;
    position: relative;
}

.business-card[data-business="apps"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--apps-bg);
    z-index: 0;
    border-radius: inherit;
}

.business-card[data-business="apps"] > * {
    position: relative;
    z-index: 1;
}

.business-card[data-business="apps"]:hover {
    border-color: var(--apps-accent) !important;
    box-shadow: 0 15px 40px rgba(74, 111, 165, 0.25) !important;
}

.business-card[data-business="apps"] h3 {
    color: var(--apps-accent) !important;
}

.business-card[data-business="apps"] .stat {
    background: rgba(74, 111, 165, 0.15) !important;
    border-color: var(--apps-border) !important;
}

.business-card[data-business="apps"] .business-btn {
    background: var(--apps-accent) !important;
}

.business-card[data-business="apps"] .business-btn:hover {
    background: #5a7ab7 !important;
}

/* Page-specific color themes */

/* Books Page Theme */
body[data-page="books"] {
    --page-accent: var(--books-accent);
    --page-bg: var(--books-bg);
    --page-border: var(--books-border);
}

body[data-page="books"] .page-hero {
    background: linear-gradient(135deg, rgba(166, 77, 77, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%) !important;
}

body[data-page="books"] .section-title {
    color: var(--books-accent) !important;
}

body[data-page="books"] .category-btn.active,
body[data-page="books"] .category-btn:hover {
    background: var(--books-accent) !important;
    border-color: var(--books-accent) !important;
    color: white !important;
}

body[data-page="books"] .category-btn {
    border-color: var(--books-border) !important;
    color: var(--books-accent) !important;
}

body[data-page="books"] .collection-card:hover {
    border-color: var(--books-accent) !important;
    box-shadow: 0 15px 40px rgba(166, 77, 77, 0.2) !important;
}

body[data-page="books"] .nav-links a.active {
    color: var(--books-accent) !important;
}

/* Forge Page Theme */
body[data-page="forge"] {
    --page-accent: var(--forge-accent);
    --page-bg: var(--forge-bg);
    --page-border: var(--forge-border);
}

body[data-page="forge"] .page-hero {
    background: linear-gradient(135deg, rgba(139, 105, 20, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%) !important;
}

body[data-page="forge"] .section-title {
    color: var(--forge-accent) !important;
}

body[data-page="forge"] .category-btn.active,
body[data-page="forge"] .category-btn:hover {
    background: var(--forge-accent) !important;
    border-color: var(--forge-accent) !important;
    color: white !important;
}

body[data-page="forge"] .category-btn {
    border-color: var(--forge-border) !important;
    color: var(--forge-accent) !important;
}

body[data-page="forge"] .project-card:hover {
    border-color: var(--forge-accent) !important;
    box-shadow: 0 15px 40px rgba(139, 105, 20, 0.2) !important;
}

body[data-page="forge"] .nav-links a.active {
    color: var(--forge-accent) !important;
}

/* Apps Page Theme */
body[data-page="apps"] {
    --page-accent: var(--apps-accent);
    --page-bg: var(--apps-bg);
    --page-border: var(--apps-border);
}

body[data-page="apps"] .page-hero {
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%) !important;
}

body[data-page="apps"] .section-title {
    color: var(--apps-accent) !important;
}

body[data-page="apps"] .category-btn.active,
body[data-page="apps"] .category-btn:hover {
    background: var(--apps-accent) !important;
    border-color: var(--apps-accent) !important;
    color: white !important;
}

body[data-page="apps"] .category-btn {
    border-color: var(--apps-border) !important;
    color: var(--apps-accent) !important;
}

body[data-page="apps"] .app-card:hover {
    border-color: var(--apps-accent) !important;
    box-shadow: 0 15px 40px rgba(74, 111, 165, 0.2) !important;
}

body[data-page="apps"] .nav-links a.active {
    color: var(--apps-accent) !important;
}

/* Contact section styling */
.contact-info {
    margin: 2rem 0;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item h4 {
    color: var(--pure-white) !important;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-item p {
    margin: 0;
    color: var(--pure-white) !important;
}

.contact-item a {
    color: var(--pure-white) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: underline;
}

/* Ensure contact section text is readable on all themed pages */
body[data-page="books"] .contact-item h4,
body[data-page="forge"] .contact-item h4,
body[data-page="apps"] .contact-item h4 {
    color: var(--pure-white) !important;
}

body[data-page="books"] .contact-item p,
body[data-page="forge"] .contact-item p,
body[data-page="apps"] .contact-item p {
    color: var(--pure-white) !important;
}

body[data-page="books"] .contact-item a,
body[data-page="forge"] .contact-item a,
body[data-page="apps"] .contact-item a {
    color: var(--pure-white) !important;
}

/* Contact section backgrounds for different pages */
body[data-page="books"] .contact {
    background: linear-gradient(135deg, rgba(166, 77, 77, 0.15) 0%, rgba(26, 26, 26, 0.95) 100%);
}

body[data-page="forge"] .contact {
    background: linear-gradient(135deg, rgba(139, 105, 20, 0.15) 0%, rgba(26, 26, 26, 0.95) 100%);
}

body[data-page="apps"] .contact {
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.15) 0%, rgba(26, 26, 26, 0.95) 100%);
}

/* Main contact section titles should also use page theme but with good contrast */
body[data-page="books"] .contact h2 {
    color: var(--pure-white) !important;
}

body[data-page="forge"] .contact h2 {
    color: var(--pure-white) !important;
}

body[data-page="apps"] .contact h2 {
    color: var(--pure-white) !important;
}

/* Enhanced Hero Section Styling */

/* Hero Badges */
.hero-badge {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.location-badge,
.experience-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.location-badge {
    background: rgba(153, 59, 59, 0.2);
    border-color: rgba(153, 59, 59, 0.3);
}

.experience-badge {
    background: rgba(138, 79, 207, 0.2);
    border-color: rgba(138, 79, 207, 0.3);
}

/* Enhanced Hero Title */
.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--pure-white);
}

.title-highlight {
    background: linear-gradient(135deg, #8a4fcf, #c55656);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Hero Tagline */
.hero-tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

/* Hero Services */
.hero-services {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.service-item:hover {
    transform: translateX(5px);
}

.service-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pure-white);
}

/* Enhanced Hero Description */
.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Enhanced CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    margin-left: 2rem;
    margin-top: 2.5rem;
}

/* Hero Footer */
.hero-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.creator-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 0;
}

.creator-note strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Responsive Hero Enhancements */
@media (max-width: 768px) {
    .hero-badge {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .location-badge,
    .experience-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .hero-services {
        padding: 1rem;
    }
    
    .service-item {
        gap: 0.75rem;
    }
    
    .service-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }
    
    .service-text {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-services {
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        margin-bottom: 2rem;
    }
}

/* Blog Page Styling */

/* Blog Page Theme */
body[data-page="blog"] {
    --page-accent: #8a4fcf;
    --page-bg: rgba(138, 79, 207, 0.08);
    --page-border: rgba(138, 79, 207, 0.2);
}

body[data-page="blog"] .page-hero {
    background: linear-gradient(135deg, rgba(138, 79, 207, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%);
}

body[data-page="blog"] .section-title {
    color: #8a4fcf;
}

body[data-page="blog"] .nav-links a.active {
    color: #8a4fcf !important;
}

body[data-page="blog"] .page-title {
    color: #8a4fcf !important;
}

body[data-page="blog"] .stat-item {
    background: rgba(138, 79, 207, 0.15) !important;
    border: 1px solid rgba(138, 79, 207, 0.3) !important;
}



/* Blog Filters */
.blog-filters {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.filter-header {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.filter-header h2 {
    color: var(--pure-white);
    margin-bottom: 0.5rem;
}

.filter-header p {
    color: rgba(255, 255, 255, 0.7);
}

.blog-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

body[data-page="blog"] .category-btn {
    background: transparent;
    border: 2px solid rgba(138, 79, 207, 0.3);
    color: #8a4fcf;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

body[data-page="blog"] .category-btn.active,
body[data-page="blog"] .category-btn:hover {
    background: #8a4fcf;
    border-color: #8a4fcf;
    color: white;
}

/* Featured Post */
.featured-post {
    padding: 4rem 0;
}

.featured-post .section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.featured-post-container {
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.featured-post-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--gray-gradient);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.featured-post-image {
    position: relative;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-card:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-post-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.featured-post-content h2 {
    color: var(--pure-white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(138, 79, 207, 0.2);
    color: #8a4fcf;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.read-more-btn {
    background: #8a4fcf;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    align-self: flex-start;
}

.read-more-btn:hover {
    background: #9b5dd6;
    transform: translateY(-2px);
}

/* Post Category Badges */
.post-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.post-category-badge.books {
    background: var(--books-accent);
}

.post-category-badge.forge {
    background: var(--forge-accent);
}

.post-category-badge.apps {
    background: var(--apps-accent);
}

.post-category-badge.process {
    background: #666666;
}

.post-category-badge.personal {
    background: #8a4fcf;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 4rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-post-card {
    background: var(--gray-gradient);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(138, 79, 207, 0.2);
    border-color: rgba(138, 79, 207, 0.3);
}

.post-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1rem;
}

.post-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.post-content h3 a {
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: #8a4fcf;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.read-more-link {
    color: #8a4fcf;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #9b5dd6;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: transparent;
    border: 2px solid #8a4fcf;
    color: #8a4fcf;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #8a4fcf;
    color: white;
}

/* Blog CTA Section */
.blog-cta {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.blog-cta h2 {
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cta-card {
    background: var(--gray-gradient);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-card.books:hover {
    box-shadow: 0 15px 40px rgba(166, 77, 77, 0.2);
}

.cta-card.forge:hover {
    box-shadow: 0 15px 40px rgba(139, 105, 20, 0.2);
}

.cta-card.apps:hover {
    box-shadow: 0 15px 40px rgba(74, 111, 165, 0.2);
}

.cta-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-card h3 {
    color: var(--pure-white);
    margin-bottom: 0.5rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* No posts message */
.no-posts {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
}

/* Responsive Blog Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 0 3rem;
    }
    
    .blog-hero .hero-content {
        padding: 0 1rem;
    }
    
    .blog-hero .hero-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .featured-post-card {
        grid-template-columns: 1fr;
    }
    
    .featured-post-image {
        height: 250px;
    }
    
    .blog-categories {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    body[data-page="blog"] .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-header {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    
    .featured-post-content {
        padding: 1.5rem;
    }
    
    .featured-post-content h2 {
        font-size: 1.5rem;
    }
}

/* New Impactful Hero Grid Styles */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.hero-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    position: relative;
    background: var(--gray-gradient);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(153, 59, 59, 0.1);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.hero-section:hover::before {
    left: 100%;
}

.hero-section:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-red);
}

.hero-section.coloring-books:hover {
    border-color: var(--books-accent);
    box-shadow: 0 12px 40px rgba(166, 77, 77, 0.3);
}

.hero-section.props:hover {
    border-color: var(--forge-accent);
    box-shadow: 0 12px 40px rgba(139, 105, 20, 0.3);
}

.hero-section.apps:hover {
    border-color: var(--apps-accent);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.3);
}

.section-content {
    position: relative;
    z-index: 2;
}

.section-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-section h3 {
    font-size: 2rem;
    color: var(--pure-white);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.section-stats {
    font-size: 1.2rem;
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 2rem;
}

.section-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.hero-section:hover .section-overlay {
    transform: translateY(0);
}

.section-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-red);
    color: var(--pure-white);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-red);
}

.coloring-books .section-cta {
    background: var(--books-accent);
    border-color: var(--books-accent);
}

.props .section-cta {
    background: var(--forge-accent);
    border-color: var(--forge-accent);
}

.apps .section-cta {
    background: var(--apps-accent);
    border-color: var(--apps-accent);
}

.section-cta:hover {
    background: transparent;
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 2rem 1.5rem;
    }
    
    .hero-section h3 {
        font-size: 1.5rem;
    }
    
    .section-icon {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}