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

/* Reset and Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #07080d;
    --bg-card: #11131c;
    --bg-card-hover: #171b26;
    --border-color: #1f2433;
    --border-glow: rgba(139, 92, 246, 0.25);
    
    --accent-primary: #8b5cf6; /* Cosmic Violet */
    --accent-primary-hover: #a78bfa;
    --accent-primary-rgb: 139, 92, 246;
    
    --accent-secondary: #06b6d4; /* Nebula Cyan */
    --accent-secondary-hover: #22d3ee;
    --accent-secondary-rgb: 6, 182, 212;
    
    --text-primary: #f9fafb; /* High contrast white */
    --text-secondary: #9ca3af; /* Muted gray */
    --text-tertiary: #6b7280; /* Darker gray */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --max-width: 1200px;
    --nav-height: 80px;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Gradients / Cosmic Ambience */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    position: relative;
    padding-bottom: 0.5rem;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

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

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

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

/* Navigation Bar */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(7, 8, 13, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

header.site-header.scrolled {
    background-color: rgba(7, 8, 13, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 70px;
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-primary);
}

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

nav.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    color: var(--text-primary);
}

nav.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: var(--transition-normal);
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

/* Base Main Layout */
main {
    flex-grow: 1;
    margin-top: var(--nav-height);
}

section {
    padding: 80px 2rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Utility Components */
.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 70%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text-violet {
    color: var(--accent-primary);
}

.accent-text-cyan {
    color: var(--accent-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, rgba(var(--accent-primary-rgb), 0.8) 100%);
    color: var(--text-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.5);
    background: linear-gradient(135deg, var(--accent-primary-hover) 0%, var(--accent-primary) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-amazon {
    background: linear-gradient(135deg, #FF9900 0%, #E47911 100%);
    color: #000;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(228, 121, 17, 0.25);
}

.btn-amazon:hover {
    background: linear-gradient(135deg, #ffac33 0%, #FF9900 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(228, 121, 17, 0.4);
}

.btn-youtube {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: var(--text-primary);
    border: none;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}

.btn-youtube:hover {
    background: linear-gradient(135deg, #ff3333 0%, #FF0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.45);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.badge-violet {
    background-color: rgba(var(--accent-primary-rgb), 0.15);
    color: var(--accent-primary-hover);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
}

.badge-cyan {
    background-color: rgba(var(--accent-secondary-rgb), 0.15);
    color: var(--accent-secondary-hover);
    border: 1px solid rgba(var(--accent-secondary-rgb), 0.3);
}

/* Card Styles */
.glass-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    border-color: rgba(var(--accent-primary-rgb), 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--accent-primary-rgb), 0.05);
}

/* Page Specific styling */

/* 1. HOMEPAGE */
.hero-section {
    position: relative;
    padding: 120px 2rem 80px 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    max-width: 900px;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-desc {
    max-width: 650px;
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* Featured Books Container */
.featured-section {
    background-color: rgba(17, 19, 28, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
}

.book-cover-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.book-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card:hover .book-cover-wrapper {
    transform: rotateY(-5deg) scale(1.03);
    box-shadow: 8px 8px 30px rgba(var(--accent-primary-rgb), 0.2);
}

.featured-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.featured-info .badge {
    align-self: flex-start;
}

.featured-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Hub Navigation Grid */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.hub-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.hub-card .card-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-card h3 {
    margin-top: 0.5rem;
}

.hub-card p {
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.hub-card .learn-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.hub-card:hover .learn-more {
    color: var(--accent-secondary-hover);
}

/* 2. FICTION PAGE */
.books-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.book-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card .book-cover-wrapper {
    margin-bottom: 1.5rem;
}

.book-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.75rem;
}

.book-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.book-details h3 {
    font-size: 1.4rem;
}

.book-details p {
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

/* Spotlight Section */
.spotlight-section {
    background-color: rgba(139, 92, 246, 0.03);
    border-top: 1px solid rgba(var(--accent-primary-rgb), 0.1);
    border-bottom: 1px solid rgba(var(--accent-primary-rgb), 0.1);
}

.spotlight-card {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent), var(--bg-card);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.25);
    border-radius: 16px;
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

.spotlight-card .book-cover-wrapper {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(var(--accent-primary-rgb), 0.2);
}

.spotlight-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spotlight-tag {
    color: var(--accent-primary-hover);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.spotlight-info h3 {
    font-size: 2.2rem;
}

.spotlight-info p {
    font-size: 1.1rem;
}

/* 3. NONFICTION PAGE */
.academic-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.academic-spotlight {
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent), var(--bg-card);
    border: 1px solid rgba(var(--accent-secondary-rgb), 0.25);
    border-radius: 16px;
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.academic-spotlight .book-cover-wrapper {
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 25px rgba(var(--accent-secondary-rgb), 0.2);
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.academic-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: start;
}

.academic-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.academic-info .metadata {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    display: block;
    font-weight: 500;
}

.academic-info p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* 4. VIDEOS PAGE */
.video-studio-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.studio-logo-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #FF0000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.video-section-divider {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-section-divider::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
}

.video-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.video-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 1.2rem;
}

.video-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.video-overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 8, 13, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.play-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: var(--transition-normal);
    color: #000;
}

.play-icon svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
    transform: translateX(2px);
}

.video-card:hover .video-thumbnail-wrapper img {
    transform: scale(1.05);
}

.video-card:hover .video-overlay-play {
    opacity: 1;
}

.video-card:hover .play-icon {
    transform: scale(1.1);
    background-color: #FF0000;
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.video-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.video-info p {
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 0.5rem;
}

.video-meta-tag {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

/* 5. BLOG PAGE */
.blog-layout {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.blog-featured-banner {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 3.5rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%), var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3.5rem;
}

.featured-banner-img {
    aspect-ratio: 1.5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.featured-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-featured-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-featured-content h3 {
    font-size: 2rem;
}

.series-tracker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    background-color: rgba(7, 8, 13, 0.5);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tracker-item {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tracker-label {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tracker-value {
    color: var(--accent-secondary-hover);
    font-weight: 700;
}

/* Masonry / Blog Grid */
.blog-feed-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.blog-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card .thumbnail-wrapper {
    aspect-ratio: 1.6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border-color);
}

.blog-card .thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.blog-card:hover .thumbnail-wrapper img {
    transform: scale(1.03);
}

.blog-card-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
}

.blog-card-details .meta {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 600;
    display: flex;
    gap: 1rem;
}

.blog-card-details h4 {
    font-size: 1.25rem;
    line-height: 1.3;
}

.blog-card-details p {
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.2rem;
}

.blog-card-details .read-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-primary-hover);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    align-self: flex-start;
}

.blog-card:hover .read-more {
    color: var(--accent-primary-hover);
    text-decoration: underline;
}

/* 6. ABOUT PAGE */
.profile-section {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 5rem;
}

.portrait-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.portrait-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
    pointer-events: none;
}

.portrait-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-normal);
}

.portrait-container:hover img {
    transform: scale(1.02);
}

.bio-content h2 {
    margin-bottom: 1.5rem;
}

.bio-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Inquiry Contact Form */
.contact-section {
    background-color: rgba(17, 19, 28, 0.4);
    border-top: 1px solid var(--border-color);
    padding: 80px 2rem;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-container p.subtitle {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-control {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* Footer */
footer.site-footer {
    background-color: #030407;
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-logo span {
    color: var(--accent-primary);
}

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

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

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

.copyright {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* RESPONSIVE DESIGN (MEDIA QUERIES) */

@media (max-width: 1024px) {
    .hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .books-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-featured-banner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-banner-img {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    header.site-header {
        height: 60px;
    }
    
    main {
        margin-top: 60px;
    }
    
    section {
        padding: 50px 1.5rem;
    }
    
    /* Mobile Menu Toggle */
    .menu-toggle {
        display: flex;
    }
    
    nav.main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-dark);
        border-top: 1px solid var(--border-color);
        padding: 3rem 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        overflow-y: auto;
    }
    
    nav.main-nav.active {
        transform: translateX(0);
    }
    
    nav.main-nav ul {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }
    
    nav.main-nav a {
        font-size: 1.3rem;
    }
    
    /* Hamburger Active Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero section */
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 1rem;
    }
    
    /* Featured Books */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .featured-card .book-cover-wrapper {
        max-width: 180px;
        margin: 0 auto;
    }
    
    .featured-info .badge {
        align-self: center;
    }
    
    /* Spotlight / Showcase */
    .spotlight-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
        text-align: center;
    }
    
    .spotlight-card .book-cover-wrapper {
        max-width: 220px;
        margin: 0 auto;
    }
    
    .academic-spotlight {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
        text-align: center;
    }
    
    .academic-spotlight .book-cover-wrapper {
        max-width: 220px;
        margin: 0 auto;
    }
    
    /* Academic List */
    .academic-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .academic-card .book-cover-wrapper {
        max-width: 160px;
        margin: 0 auto;
    }
    
    /* Profile */
    .profile-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .portrait-container {
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Form */
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
    
    .books-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .academic-grid {
        grid-template-columns: 1fr;
    }
    
    .video-category-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-masonry-grid {
        grid-template-columns: 1fr;
    }
}


/* Book Actions Grid */
.book-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: auto;
}
.book-actions.single {
    grid-template-columns: 1fr;
}
@media (max-width: 480px) {
    .book-actions {
        grid-template-columns: 1fr;
    }
}


/* Contain fit for vertical book covers in blog */
.blog-card .thumbnail-wrapper img.book-thumb {
    object-fit: contain;
    background-color: #050609;
}
