/* 
 * Main Stylesheet for Author Website
 * Author: Your Name
 * Version: 1.0
 */

/* ======= TABLE OF CONTENTS =======
 * 1. CSS Variables
 * 2. Base Styles
 * 3. Typography
 * 4. Layout & Grid
 * 5. Header & Navigation
 * 6. Hero Sections
 * 7. Book Sections
 * 8. Blog Sections
 * 9. About Sections
 * 10. Events Sections
 * 11. Press Kit Sections
 * 12. Forms & Inputs
 * 13. Buttons
 * 14. Cards & Containers
 * 15. Footer
 * 16. Utility Classes
 * 17. Media Queries
 * ============================== */

/* 1. CSS Variables */
:root {
    --primary-color: #3a6ea5;
    --secondary-color: #004e98;
    --accent-color: #ff6b35;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #e85d04);
    
    /* RGB values for advanced effects */
    --primary-rgb: 58, 110, 165;
    --secondary-rgb: 0, 78, 152;
    --accent-rgb: 255, 107, 53;
    --text-primary-rgb: 51, 51, 51;
    --text-secondary-rgb: 102, 102, 102;
    --white-rgb: 255, 255, 255;
    --black-rgb: 0, 0, 0;
    --bg-alternate: #f5f7fa;
}

/* Dark theme */
[data-theme="dark"] {
    --primary-color: #4d8ac8;
    --secondary-color: #1a6fc7;
    --accent-color: #ff8a5c;
    --text-primary: #e2e8f0;
    --text-secondary: #a1a1aa;
    --text-light: #ffffff;
    --bg-primary: #1a1f36;
    --bg-secondary: #2d3748;
    --bg-alternate: #1a202c;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    
    /* RGB values for dark theme */
    --primary-rgb: 77, 138, 200;
    --secondary-rgb: 26, 111, 199;
    --accent-rgb: 255, 138, 92;
    --text-primary-rgb: 226, 232, 240;
    --text-secondary-rgb: 161, 161, 170;
}

/* Base styles that apply to both themes */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 70px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

header {
    background-color: var(--bg-secondary);
}

.book-card, .blog-card, .event-card {
    background-color: var(--bg-secondary);
    box-shadow: var(--card-shadow);
}

/* 2. Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at top right, rgba(78, 84, 200, 0.05) 0%, transparent 70%),
        radial-gradient(circle at bottom left, rgba(255, 126, 95, 0.05) 0%, transparent 70%);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    list-style: none;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--light-text);
}

blockquote {
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

/* Decorative elements */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.text-center .section-title::before {
    left: 50%;
    transform: translateX(-35px);
}

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

/* 4. Layout & Grid */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

section {
    padding: 60px 0;
}

/* 5. Header & Navigation - Modern Transparent Style */
.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
}

[data-theme="dark"] .main-header {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.main-header.compact {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .main-header.compact {
    background: rgba(15, 23, 42, 0.95);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.logo:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.main-nav {
    display: flex !important;
    align-items: center;
}

.main-nav ul {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: row !important;
    align-items: center;
    gap: 5px;
}

.main-nav li {
    margin: 0 !important;
    position: relative;
    width: auto !important;
}

.main-nav a {
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 15px !important;
    border-radius: 8px;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    width: auto !important;
}

.main-nav a:hover {
    color: var(--accent-color);
    background: rgba(var(--accent-color-rgb), 0.08);
    transform: none !important;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50%);
    display: block !important;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 30px;
    opacity: 1;
}

/* Remove inner-page specific styles as we want all pages to look the same */
body.inner-page .main-header,
[data-theme="dark"] body.inner-page .main-header,
body.inner-page .main-nav ul,
body.inner-page .main-nav li,
body.inner-page .main-nav a {
    /* Reset any specific styles to ensure consistency */
}

/* Mobile navigation */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
        padding-top: 80px;
        display: block !important;
    }
    
    [data-theme="dark"] .main-nav {
        background: rgba(15, 23, 42, 0.95);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column !important;
        padding: 20px;
        align-items: flex-start;
        gap: 15px;
        display: block !important;
    }
    
    .main-nav li {
        width: 100% !important;
        margin: 0 0 10px 0 !important;
    }
    
    .main-nav a {
        padding: 12px 20px !important;
        width: 100% !important;
        border-radius: 8px;
        font-size: 1.1rem;
    }
    
    .main-nav a::after {
        display: none !important;
    }
    
    .main-nav a:hover {
        background: rgba(var(--accent-color-rgb), 0.1);
        transform: translateX(5px) !important;
    }
    
    /* Remove any inner-page specific mobile styles */
    body.inner-page .main-nav ul,
    body.inner-page .main-nav li,
    body.inner-page .main-nav a {
        /* Reset any specific styles to ensure consistency */
    }
}

/* Theme toggle button in navigation */
.theme-toggle {
    width: 50px;
    height: 25px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    margin-left: 15px;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 3.5px;
    left: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle::after {
    left: calc(100% - 22px);
}

.theme-toggle i {
    font-size: 12px;
    color: var(--text-primary);
    z-index: 1;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

/* 6. Hero Sections */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
    color: var(--text-light);
    overflow: hidden;
    padding: 120px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-style: italic;
    opacity: 0.9;
}

.author-photo {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.author-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.author-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.5s ease;
}

.author-photo:hover img {
    transform: scale(1.05);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

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

.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/page-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 7. Book Sections */
.featured-book {
    background: #fff;
    padding: 60px 0;
}

.featured-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.book-cover {
    flex: 0 0 300px;
}

.book-cover img {
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.book-details {
    flex: 1;
}

.book-tagline {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 20px;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.book-meta span {
    background-color: var(--light-bg);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.book-cta {
    margin-top: 30px;
}

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

.book-card {
    background: var(--bg-secondary);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

.book-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-image::after {
    opacity: 1;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.book-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.book-card:hover .book-info h3 {
    color: var(--primary-color);
}

.book-info p {
    color: var(--light-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--accent-color);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    overflow: hidden;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.read-more:hover {
    color: var(--accent-color);
}

.read-more:hover i {
    transform: translateX(8px);
}

/* Book ribbon for new releases */
.book-card.new-release::before {
    content: 'New Release';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    z-index: 10;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 8. Blog Sections */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.blog-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--box-shadow);
    transition: var(--transition-main);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.blog-content {
    padding: 25px;
    position: relative;
}

.blog-category {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: var(--transition-main);
}

.blog-card:hover .blog-category {
    background: var(--primary-color);
    color: white;
}

/* Add a decorative line that animates on hover */
.blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.blog-card:hover::after {
    width: 100%;
}

.blog-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 2px;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
    background-size: 100% 2px;
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Featured post styling */
.featured-post {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 50px;
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.featured-post .post-image {
    height: 300px;
    position: relative;
}

.featured-post .post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.featured-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .post-image img {
    transform: scale(1.03);
}

.featured-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 5;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-post .post-image {
        height: 180px;
        border-radius: 15px 15px 0 0;
    }
    
    .featured-post .post-content {
        padding: 20px 15px;
    }
}

/* 9. About Sections */
/* 10. Events Sections */
/* 11. Press Kit Sections */
/* 12. Forms & Inputs */
/* 13. Buttons */
/* 14. Cards & Containers */
/* 15. Footer */
/* 16. Utility Classes */
/* 17. Media Queries */

/* Add the rest of your CSS here, following the same organized structure */

/* Enhanced Button Styles */
.btn {
    padding: 12px 28px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition-main);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    transition: var(--transition-main);
}

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

.btn:hover::before {
    transform: translateX(0);
}

/* Button active effect - scale down when clicked */
.btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Button shine effect */
.btn::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.7s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* Button background ripple effect */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
    z-index: -1;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(20) translate(-50%, -50%);
        opacity: 0;
    }
}

/* Primary button */
.primary-btn {
    background: var(--gradient-primary);
    color: var(--text-light);
    border: 2px solid transparent;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #3a506b 10%, #5bc0be 90%);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Secondary button */
.secondary-btn {
    background: var(--gradient-secondary);
    color: var(--primary-color);
    border: 2px solid transparent;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #5bc0be 10%, #6fffe9 90%);
    color: var(--primary-color);
    border-color: rgba(58, 80, 107, 0.2);
}

/* Outline button */
.outline-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.outline-btn:hover {
    background: rgba(58, 80, 107, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Text button */
.text-btn {
    background: transparent;
    color: var(--primary-color);
    padding: 8px 16px;
    box-shadow: none;
}

.text-btn:hover {
    background: rgba(58, 80, 107, 0.05);
    transform: translateY(-2px);
    box-shadow: none;
}

/* Button with icon */
.btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* Accent button */
.accent-btn {
    background: var(--gradient-accent);
    color: var(--text-light);
    border: 2px solid transparent;
}

.accent-btn:hover {
    background: linear-gradient(135deg, #e76f51 10%, #f4a261 90%);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 3D Button Effect */
.btn-3d {
    transform-style: preserve-3d;
    transform: perspective(1000px) translateZ(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: translateZ(-10px);
    filter: brightness(0.8);
    z-index: -2;
}

.btn-3d:hover {
    transform: perspective(1000px) translateZ(10px);
}

/* Pulsing button */
.btn-pulse {
    animation: button-pulse 2s infinite;
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(91, 192, 190, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(91, 192, 190, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(91, 192, 190, 0);
    }
}

/* Button with gradient border */
.btn-gradient-border {
    background: transparent;
    color: var(--primary-color);
    border: none;
    position: relative;
    z-index: 1;
    box-shadow: none;
}

.btn-gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.btn-gradient-border:hover {
    box-shadow: 0 7px 15px rgba(91, 192, 190, 0.3);
}

/* Enhanced Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
    color: var(--text-light);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    margin: 60px 0;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--btn-radius);
    padding: 8px;
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-main);
}

.newsletter-form:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background: white;
    color: var(--primary-dark);
    border: none;
    border-radius: var(--btn-radius);
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-main);
}

.newsletter-form button:hover {
    background: var(--accent-light);
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Scroll Reveal Effect */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Toggle Enhancement */
.theme-toggle {
    width: 50px;
    height: 25px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    margin-left: 15px;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 3.5px;
    left: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle::after {
    left: calc(100% - 22px);
}

.theme-toggle i {
    font-size: 12px;
    color: var(--text-primary);
    z-index: 1;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    transition: var(--transition-main);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

/* Calendar icon animation */
.calendar-icon {
    display: inline-block;
    animation: calendar-bounce 2s infinite;
}

@keyframes calendar-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Horizontal Contact Form */
.contact-form-container {
    max-width: 900px; /* Increased width */
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border-radius: var(--card-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.contact-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Create a two-column layout for larger screens */
@media (min-width: 768px) {
    .contact-form {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "name email"
            "subject subject"
            "message message"
            "button button";
    }
    
    .contact-form .form-group:nth-child(1) {
        grid-area: name;
    }
    
    .contact-form .form-group:nth-child(2) {
        grid-area: email;
    }
    
    .contact-form .form-group:nth-child(3) {
        grid-area: subject;
    }
    
    .contact-form .form-group:nth-child(4) {
        grid-area: message;
    }
    
    .contact-form button {
        grid-area: button;
    }
}

.contact-form .form-group {
    margin-bottom: 0; /* Remove default margin since we're using grid gap */
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--card-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 192, 190, 0.2);
}

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

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(58, 80, 107, 0.2);
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 80, 107, 0.3);
}

/* Add a subtle animation to form fields */
.contact-form input,
.contact-form textarea {
    transform: translateY(0);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-2px);
}

/* Contact form success state */
.contact-form button.success {
    background: var(--gradient-secondary);
    color: var(--primary-color);
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    color: var(--text-primary);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    border-left: 5px solid var(--secondary-color);
}

.notification.error {
    border-left: 5px solid #e74c3c;
}

.notification.info {
    border-left: 5px solid var(--primary-color);
}

.notification-icon {
    font-size: 1.2rem;
}

.notification.success .notification-icon {
    color: var(--secondary-color);
}

.notification.error .notification-icon {
    color: #e74c3c;
}

.notification.info .notification-icon {
    color: var(--primary-color);
}

.notification-message {
    flex-grow: 1;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    margin-left: 10px;
}

/* Enhanced Latest Release Section */
.latest-release-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}

.latest-release-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.8;
}

.latest-release-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.latest-release-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
}

.latest-release-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.latest-release-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.latest-release-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .latest-release-container {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        gap: 50px;
    }
}

.book-showcase {
    position: relative;
    perspective: 1000px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 350px;
}

@media (min-width: 992px) {
    .book-showcase {
        margin-bottom: 0;
    }
}

.book-3d {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-30deg);
    transition: transform 0.5s ease;
    height: 500px;
}

.book-showcase:hover .book-3d {
    transform: rotateY(-15deg);
}

.book-cover {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.book-cover img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 2px 8px 8px 2px;
}

.book-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, #1c2541, #3a506b);
    transform: translateX(-39px) rotateY(-90deg);
    transform-origin: right;
    border-radius: 2px 0 0 2px;
}

.book-spine::after {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.book-pages {
    position: absolute;
    top: 5px;
    right: 0;
    width: calc(100% - 5px);
    height: calc(100% - 10px);
    background: white;
    transform: translateZ(-5px);
    border-radius: 0 5px 5px 0;
}

.book-pages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent 20%);
    border-radius: 0 5px 5px 0;
}

.book-shadow {
    position: absolute;
    bottom: -30px;
    left: 5%;
    width: 90%;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    filter: blur(15px);
    transform: rotateX(80deg);
    opacity: 0.8;
    z-index: -1;
    transition: all 0.5s ease;
}

.book-showcase:hover .book-shadow {
    width: 95%;
    left: 2.5%;
}

.book-details {
    flex: 1;
    color: white;
    max-width: 600px;
}

.book-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.book-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.book-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.book-meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.book-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.book-cta .btn {
    min-width: 180px;
}

.new-release-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--accent-color);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(231, 111, 81, 0.3);
    z-index: 10;
    transform: rotate(15deg);
}

.parallax-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.parallax-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateZ(-1px) scale(1.5);
    z-index: -1;
}

.parallax-overlay {
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

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

/* Author Bio Section */
.author-bio {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.bio-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.bio-image {
    flex: 0 0 auto;
    max-width: 100%;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
    z-index: 2;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-secondary);
    padding: 10px;
}

.bio-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    display: inline-block;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    background-color: var(--bg-primary);
    z-index: 3;
    position: relative;
}

.bio-image::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 100%);
    opacity: 0.1;
    z-index: 1;
    border-radius: 15px;
    transition: opacity 0.5s ease;
}

.bio-image:hover img {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.bio-image:hover::after {
    transform: translate(10px, 10px);
    opacity: 0.8;
}

.bio-text {
    flex: 1;
}

.bio-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-weight: 500;
}

.author-quote {
    margin: 40px 0;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
}

.author-quote blockquote {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.signature {
    margin-top: 30px;
    text-align: right;
}

.signature img {
    max-width: 200px;
    height: auto;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .bio-content {
        flex-direction: row;
        align-items: center;
    }
    
    .bio-image {
        flex: 0 0 40%;
        margin-right: 40px;
        margin-bottom: 0;
        max-width: 400px;
    }
    
    .bio-image img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {
    .bio-image {
        margin: 0 auto 30px;
        max-width: 300px;
    }
    
    .bio-text {
        text-align: center;
    }
}

/* Writing Process Section */
.writing-process {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.process-steps {
    margin-top: 50px;
    position: relative; /* Added to ensure the line is positioned relative to this container */
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    align-items: flex-start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2; /* Increased to ensure it's above the line */
}

.step-content {
    flex: 1;
    padding-top: 5px;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Connect steps with a line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 2px;
    height: calc(100% - 60px);
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 1;
    opacity: 0.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .process-steps::before {
        display: none;
    }
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.faq-container {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--card-radius);
    background-color: var(--bg-secondary);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    flex: 1;
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    transition: var(--transition);
    margin-left: 15px;
}

.toggle-icon i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px; /* Adjust based on your content */
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer Styles */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 0;
}

.footer-links h4 {
    position: relative;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li {
    position: relative;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
}

.copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(var(--text-color-rgb), 0.1);
    margin-top: 2rem;
}

.copyright p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .footer-links ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Blog Page Specific Styles */
.blog-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/blog/blog-hero.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.blog-hero .lead {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.blog-content {
    padding: 60px 0;
}

.blog-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .blog-grid-container {
        grid-template-columns: 1fr;
    }
}

.blog-post {
    margin-bottom: 40px;
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.post-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 50px;
}

.featured-post .post-image {
    height: 320px;
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.post-category {
    color: var(--accent-color);
    font-weight: 600;
}

.post-date {
    color: var(--text-secondary);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-post .post-title {
    font-size: 1.8rem;
}

.post-excerpt p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.regular-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.regular-posts .blog-post {
    margin-bottom: 0;
}

.regular-posts .post-image {
    height: 160px;
}

.regular-posts .post-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.regular-posts .post-content {
    padding: 20px;
}

.regular-posts .post-excerpt p {
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .regular-posts {
        grid-template-columns: 1fr;
    }
    
    .featured-post .post-image {
        height: 220px;
    }
    
    .regular-posts .post-image {
        height: 180px;
    }
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 30px;
}

.sidebar-widget {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.author-widget {
    text-align: center;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.author-widget .social-icons {
    margin-top: 15px;
    justify-content: center;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-primary);
}

.search-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0 15px;
    cursor: pointer;
}

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

.category-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.category-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.post-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.post-info h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-info h4 a:hover {
    color: var(--primary-color);
}

.post-info .post-date {
    font-size: 0.8rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.page-number, .next-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.next-page {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

.page-number.current {
    background: var(--primary-color);
    color: white;
}

.page-number:hover, .next-page:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-3px);
}

.next-page i {
    margin-left: 5px;
}

.developer-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.developer-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.developer-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.developer-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.developer-image {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    display: inline-block;
}

.developer-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.developer-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    z-index: 1;
    opacity: 0.5;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.developer-image:hover img {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.developer-image:hover::before {
    transform: scale(1);
    opacity: 0.7;
}

.project-section {
    padding: 80px 0;
    background: var(--bg-primary);
    position: relative;
}

.project-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/dots-pattern.svg');
    background-size: 30px;
    opacity: 0.03;
    pointer-events: none;
}

.project-section .section-title {
    margin-bottom: 60px;
    position: relative;
}

.project-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-main);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--accent-color-rgb), 0.3);
}

.project-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.3), rgba(var(--accent-color-rgb), 0.3));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1) rotate(2deg);
}

.project-description {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.project-description h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.project-description h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.project-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tag {
    padding: 6px 12px;
    background: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: rgba(var(--accent-color-rgb), 0.2);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-link.demo {
    background: var(--primary-color);
    color: white;
}

.project-link.code {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(var(--text-primary-rgb), 0.2);
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-link.demo:hover {
    background: var(--accent-color);
}

.project-link.code:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.project-link i {
    font-size: 1rem;
}

@media (max-width: 992px) {
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .developer-hero h1 {
        font-size: 2.5rem;
    }
    
    .project-description {
        padding: 30px;
    }
    
    .project-description h3 {
        font-size: 1.5rem;
    }
}

/* Newsletter Section Styling */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    margin: 60px 0;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-text {
    margin-bottom: 30px;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.newsletter-text p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-light);
    opacity: 0.9;
}

.newsletter-form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--btn-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-main);
}

.newsletter-form:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-form .form-group {
    width: 100%;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--btn-radius);
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-main);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
    width: 100%;
    padding: 12px 15px;
    background: white;
    color: var(--primary-dark);
    border: none;
    border-radius: var(--btn-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-main);
    margin-top: 10px;
}

.newsletter-form button:hover {
    background: var(--accent-light);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .newsletter-form {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .newsletter-form .form-group {
        flex: 1;
        min-width: 200px;
    }
    
    .newsletter-form button {
        margin-top: 0;
        min-width: 150px;
    }
}

/* Modernized Events Preview Section */
.events-preview {
    padding: 80px 0;
    background: linear-gradient(to right, rgba(var(--primary-color-rgb), 0.05), rgba(var(--accent-color-rgb), 0.05));
    position: relative;
    overflow: hidden;
}

.events-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.05;
    pointer-events: none;
}

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

.event-card {
    background: var(--bg-primary);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-main);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--accent-color-rgb), 0.3);
}

.event-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
    z-index: 2;
    transition: var(--transition-main);
}

.event-card:hover .event-date {
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.4);
}

.event-date .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 5px;
}

.event-details {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-details h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    padding-right: 80px;
    transition: var(--transition-main);
}

.event-card:hover .event-details h3 {
    color: var(--primary-color);
}

.event-location, .event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.event-location i, .event-time i {
    color: var(--accent-color);
    font-size: 1rem;
}

.event-details .btn {
    margin-top: 20px;
    align-self: flex-start;
}

.center-button {
    text-align: center;
    margin-top: 40px;
}

/* Fix for Latest Release Section */
.featured-book {
    background: var(--bg-secondary);
    padding: 80px 0;
    position: relative;
}

.featured-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--bg-primary);
    border-radius: var(--card-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.featured-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: var(--card-radius) 0 0 var(--card-radius);
}

.book-cover {
    flex: 0 0 300px;
    position: relative;
    transition: var(--transition-main);
}

.book-cover::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 5%;
    width: 90%;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    filter: blur(10px);
    border-radius: 50%;
    z-index: -1;
    transition: var(--transition-main);
}

.featured-content:hover .book-cover {
    transform: translateY(-10px);
}

.featured-content:hover .book-cover::after {
    width: 95%;
    left: 2.5%;
    opacity: 0.5;
}

.book-cover img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: var(--transition-main);
}

.book-details {
    flex: 1;
}

.book-details h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.book-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.book-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .featured-content {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-content::before {
        width: 100%;
        height: 5px;
        top: 0;
        left: 0;
        background: linear-gradient(to right, var(--primary-color), var(--accent-color));
        border-radius: var(--card-radius) var(--card-radius) 0 0;
    }
    
    .book-cover {
        margin-bottom: 30px;
    }
    
    .book-cta {
        justify-content: center;
    }
}

/* Enhanced Book Cards with Portrait Images */
.book-card {
    background: var(--bg-secondary);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(var(--primary-color-rgb), 0.05);
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--accent-color-rgb), 0.2);
}

.book-image {
    position: relative;
    height: 320px; /* Portrait-like height */
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--accent-color-rgb), 0.05));
}

.book-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.book-card:hover .book-image::after {
    opacity: 1;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Focus on top part of image for portrait look */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center top;
}

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

.book-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    border-top: 3px solid var(--accent-color);
}

.book-info h3 {
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    line-height: 1.4;
    position: relative;
    padding-bottom: 12px;
}

.book-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.book-card:hover .book-info h3 {
    color: var(--primary-color);
}

.book-card:hover .book-info h3::after {
    width: 60px;
    background: var(--accent-color);
}

.book-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.book-meta span {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.book-card:hover .book-meta span {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--accent-color);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.read-more:hover {
    color: var(--accent-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Book ribbon for new releases */
.book-card.new-release::before {
    content: 'New Release';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    z-index: 10;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* Book 3D effect on hover */
.book-card {
    perspective: 1000px;
}

.book-card:hover .book-image {
    transform: rotateY(10deg);
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Book grid layout */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .book-image {
        height: 280px;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
    }
    
    .book-info {
        padding: 20px 15px;
    }
    
    .book-info h3 {
        font-size: 1.1rem;
    }
}

/* Enhanced Book Page Sections - All Books and Book Series */
.books-page-section {
    padding: 80px 0;
    position: relative;
}

.books-page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.books-page-section .section-title {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* All Books Section */
.all-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.all-books-grid .book-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.all-books-grid .book-image {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.all-books-grid .book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.all-books-grid .book-card:hover .book-image img {
    transform: scale(1.08);
}

.all-books-grid .book-info {
    padding: 20px;
    background: var(--bg-primary);
    border-top: 3px solid var(--accent-color);
}

.all-books-grid .book-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Book Series Section */
.book-series-container {
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.book-series {
    margin-bottom: 70px;
    position: relative;
}

.book-series:last-child {
    margin-bottom: 0;
}

.series-header {
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--accent-color);
}

.series-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.series-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
}

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

.series-book-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

.series-book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.series-book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

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

.series-book-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.series-book-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-top: 3px solid var(--primary-color);
}

.series-book-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.series-book-card:hover .series-book-info h4 {
    color: var(--primary-color);
}

.series-book-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    flex-grow: 1;
}

.series-book-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.series-book-year {
    font-weight: 600;
}

.series-cta {
    text-align: center;
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .all-books-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 30px;
    }
    
    .series-books {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 25px;
    }
    
    .series-book-image {
        height: 230px;
    }
}

@media (max-width: 768px) {
    .all-books-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .all-books-grid .book-image {
        height: 220px;
    }
    
    .series-books {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .series-book-image {
        height: 200px;
    }
    
    .series-header h3 {
        font-size: 1.5rem;
    }
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/about-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-hero p.lead {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Author Bio Section */
.author-bio {
    padding: 80px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.bio-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.bio-image {
    flex: 0 0 auto;
    max-width: 100%;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.bio-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    display: inline-block;
}

.bio-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 310px;
    height: calc(100% - 40px);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    z-index: -1;
}

.bio-image:hover img {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.bio-text {
    flex: 1;
}

.bio-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-weight: 500;
}

.author-quote {
    margin: 40px 0;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
}

.author-quote blockquote {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.signature {
    margin-top: 30px;
    text-align: right;
}

.signature img {
    max-width: 200px;
    height: auto;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .bio-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .bio-image {
        flex: 0 0 300px;
        margin-right: 50px;
        margin-bottom: 0;
    }
    
    .bio-image img {
        width: 100%;
        max-width: 300px; /* Reduced from larger size */
    }
    
    .bio-image::after {
        left: 20px;
        transform: none;
    }
}

/* Writing Journey Section */
.writing-journey {
    padding: 80px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.writing-journey::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom right, rgba(var(--accent-rgb), 0.05), transparent);
    z-index: 0;
}

.inspirations {
    padding: 80px 0;
    background-color: var(--bg-alternate);
    position: relative;
}

.inspirations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(135deg, rgba(var(--accent-rgb), 0.07), transparent);
    z-index: 0;
}

.fun-facts {
    padding: 80px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.fun-facts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(45deg, transparent, rgba(var(--accent-rgb), 0.05));
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 0;
    font-weight: 300;
}

/* Ensure proper spacing between cards */
.inspirations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.facts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .inspirations-grid,
    .facts-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

.journey-timeline {
    position: relative;
    padding-left: 30px;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(to bottom, 
        var(--accent-color) 0%, 
        rgba(var(--accent-rgb), 0.7) 50%, 
        rgba(var(--accent-rgb), 0.3) 100%);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: -60px;
    top: 0;
    width: 80px;
    height: 40px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
    z-index: 3;
}

.timeline-year span {
    position: relative;
    z-index: 2;
}

.timeline-year::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--accent-color);
    border-radius: 50%;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2);
}

/* Inspirations Section */
.inspirations {
    padding: 80px 0;
    background-color: var(--bg-alternate);
    position: relative;
}

.inspirations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(135deg, rgba(var(--accent-rgb), 0.07), transparent);
    z-index: 0;
}

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

.inspiration-card {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.inspiration-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.inspiration-icon {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 15px;
    background-color: rgba(var(--accent-rgb), 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.2);
}

.inspiration-card:hover .inspiration-icon {
    transform: scale(1.1);
    background-color: rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}

.inspiration-icon i {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.inspiration-card:hover .inspiration-icon i {
    transform: scale(1.1);
}

.inspiration-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.inspiration-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Fun Facts Section */
.fun-facts {
    padding: 80px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.fun-facts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(45deg, transparent, rgba(var(--accent-rgb), 0.05));
    z-index: 0;
}

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

.fact-item {
    background-color: var(--bg-secondary);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}

.fact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.fact-icon {
    color: var(--accent-color);
    font-size: 2rem;
    background-color: rgba(var(--accent-rgb), 0.1);
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.2);
}

.fact-item:hover .fact-icon {
    transform: scale(1.1);
    background-color: rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}

.fact-icon i {
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.fact-item:hover .fact-icon i {
    transform: scale(1.1);
}

.fact-content {
    flex: 1;
}

.fact-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.fact-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Dark Theme Adjustments for About Page */
[data-theme="dark"] .bio-image img {
    border-color: var(--bg-secondary);
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .timeline-content,
[data-theme="dark"] .fact-item {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

[data-theme="dark"] .inspiration-card {
    background-color: rgba(45, 55, 72, 0.8);
}

[data-theme="dark"] .author-quote {
    background-color: rgba(45, 55, 72, 0.5);
}

[data-theme="dark"] .bio-image {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .bio-image img {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.05) contrast(1.05);
}

[data-theme="dark"] .bio-image::after {
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 100%);
    opacity: 0.2;
}

.timeline-content {
    background-color: var(--bg-secondary);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    border-left: 4px solid var(--accent-color);
    margin-left: 20px;
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stories Section */
.stories-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.stories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05), transparent);
    z-index: 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.story-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 4px solid var(--accent-color);
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.story-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(var(--text-secondary-rgb), 0.1);
}

.story-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.author-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.story-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.story-category {
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.story-content {
    padding: 20px;
    flex: 1;
}

.story-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}

.story-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.story-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(var(--text-secondary-rgb), 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.story-stats {
    display: flex;
    gap: 15px;
}

.story-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.story-stats .likes i {
    color: #e74c3c;
}

.story-stats .comments i {
    color: var(--accent-color);
}

.story-actions {
    display: flex;
    gap: 10px;
}

.story-actions button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.story-actions button:hover {
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
}

.story-actions .like-btn.liked {
    color: #e74c3c;
}

.story-actions .like-btn.liked i {
    font-weight: 900;
}

.story-comments {
    padding: 20px;
    border-top: 1px solid rgba(var(--text-secondary-rgb), 0.1);
    background-color: rgba(var(--bg-secondary-rgb), 0.5);
}

.story-comments.hidden {
    display: none;
}

.comments-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.comment {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(var(--bg-primary-rgb), 0.5);
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.comment p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 10px;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    display: block;
    text-align: right;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(var(--text-secondary-rgb), 0.2);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.comment-form button {
    align-self: flex-end;
    padding: 8px 20px;
}

.author-submission {
    margin-top: 60px;
    padding: 30px;
    background-color: rgba(var(--accent-rgb), 0.05);
    border-radius: 12px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.author-submission h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 15px;
}

.author-submission p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark theme adjustments */
[data-theme="dark"] .story-card {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .story-comments {
    background-color: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .comment {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .story-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .story-category {
        align-self: flex-start;
    }
    
    .story-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .story-stats, .story-actions {
        width: 100%;
        justify-content: space-around;
    }
}

/* Stories Categories */
.stories-categories {
    padding: 30px 0;
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.categories-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    background: none;
    border: 2px solid transparent;
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    color: var(--accent-color);
    background-color: rgba(var(--accent-rgb), 0.05);
}

.category-btn.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: rgba(var(--accent-rgb), 0.1);
    font-weight: 600;
}

/* Submission Section */
.submission-section {
    padding: 80px 0;
    background-color: var(--bg-alternate);
    position: relative;
    overflow: hidden;
}

.submission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, transparent 100%);
    z-index: 0;
}

.submission-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.submission-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.submission-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.submission-feature {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.submission-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(var(--accent-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--accent-color);
}

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

.submission-feature p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.submission-section .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

[data-theme="dark"] .submission-feature {
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .submission-section {
        padding: 60px 0;
    }
    
    .submission-content h2 {
        font-size: 2rem;
    }
    
    .submission-features {
        grid-template-columns: 1fr;
    }
}

/* Press Page Styles */
.press-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(var(--primary-rgb), 0.7) 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    color: #fff;
}

.press-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.15;
    z-index: 1;
}

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

.press-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out;
}

.press-hero .lead {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

/* Press Overview Section */
.press-overview {
    padding: 80px 0;
    background-color: var(--bg-alternate);
    border-bottom: 1px solid rgba(var(--text-secondary-rgb), 0.08);
}

.press-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

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

.contact-info {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Author Bio Section */
.press-bio {
    padding: 80px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.press-bio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.bio-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.bio-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
}

.bio-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bio-image:hover img {
    transform: scale(1.05);
}

.bio-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.bio-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.photo-item {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-bottom: 3px solid var(--primary-color);
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-info {
    padding: 20px;
    text-align: center;
}

/* Book Covers Section */
.covers-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cover-item {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-bottom: 3px solid var(--primary-color);
}

.cover-item:hover {
    transform: translateY(-5px);
}

.cover-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.cover-info {
    padding: 20px;
    text-align: center;
}

/* Press Coverage Tabs */
.coverage-tabs {
    margin-top: 40px;
    background-color: var(--bg-alternate);
    padding: 40px;
    border-radius: 15px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.media-list {
    display: grid;
    gap: 30px;
}

.media-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 25px;
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-logo img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* Awards Section */
.awards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.award-item:hover {
    transform: translateY(-5px);
}

.award-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

/* Media Request Form */
.media-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(var(--text-secondary-rgb), 0.1);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .press-hero {
        padding: 80px 0;
    }

    .press-hero h1 {
        font-size: 2.5rem;
    }

    .bio-content {
        grid-template-columns: 1fr;
    }

    .bio-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .media-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .media-logo {
        margin: 0 auto;
        max-width: 200px;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }
}

/* Notification System */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background: #28a745;
    color: #fff;
}

.notification.error {
    background: #dc3545;
    color: #fff;
}

/* Enhanced Interactive Elements */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(var(--primary-rgb), 0.8) 100%);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.download-btn i {
    font-size: 1.1em;
}

/* Section Headers Enhancement */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Card Hover Effects */
.contact-info,
.photo-item,
.cover-item,
.media-item,
.award-item {
    position: relative;
    overflow: hidden;
}

.contact-info::before,
.photo-item::before,
.cover-item::before,
.media-item::before,
.award-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info:hover::before,
.photo-item:hover::before,
.cover-item:hover::before,
.media-item:hover::before,
.award-item:hover::before {
    opacity: 1;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Enhanced Form Styles */
.media-form .form-group {
    position: relative;
}

.media-form input:focus ~ label,
.media-form textarea:focus ~ label,
.media-form select:focus ~ label {
    color: var(--primary-color);
}

.media-form input:focus,
.media-form textarea:focus,
.media-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.media-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(var(--primary-rgb), 0.8) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-form button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.media-form button[type="submit"]:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

/* Dark Theme Adjustments */
@media (prefers-color-scheme: dark) {
    .notification {
        background: var(--bg-secondary);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

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

    .download-btn:hover {
        background: var(--primary-light);
    }

    .media-form input,
    .media-form textarea,
    .media-form select {
        background: var(--bg-primary);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .media-form input:focus,
    .media-form textarea:focus,
    .media-form select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
    }
}

/* Enhanced Notification System */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 400px;
    border-left: 4px solid var(--primary-color);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification-icon {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notification.success .notification-icon {
    color: #28a745;
}

.notification.error .notification-icon {
    color: #dc3545;
}

.notification.info .notification-icon {
    color: var(--primary-color);
}

.notification-message {
    padding: 15px 10px 15px 0;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 15px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--text-primary);
}

/* Enhanced Press Page Animations */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.downloading {
    position: relative;
    overflow: hidden;
}

.downloading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    animation: downloadShimmer 1s infinite;
}

@keyframes downloadShimmer {
    100% {
        transform: translateX(100%);
    }
}

.media-form button.success {
    background: #28a745 !important;
}

/* Enhanced hover effects */
.photo-item img,
.cover-item img,
.bio-image img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.photo-item:hover img,
.cover-item:hover img,
.bio-image:hover img {
    transform: scale(1.05);
}

.award-item,
.media-item,
.contact-info {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.award-item:hover,
.media-item:hover,
.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Adjustments */
@media (prefers-color-scheme: dark) {
    .notification {
        background: var(--bg-secondary);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .downloading::after {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    }
    
    .media-form button.success {
        background: #28a745 !important;
    }
}

/* Enhanced Developer Page Styles */
.developer-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.developer-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
    animation: subtleFloat 15s ease-in-out infinite alternate;
}

.developer-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.8s ease-out;
}

.developer-hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Developer Profile Section */
.developer-profile {
    padding: 80px 0;
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

.developer-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.developer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.developer-info {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    padding: 40px;
}

.developer-image {
    position: relative;
    z-index: 2;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.developer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: contrast(1.05) saturate(1.1);
}

.developer-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.developer-image::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: rotate(45deg) translateY(-100%);
    pointer-events: none;
}

.developer-image:hover::after {
    opacity: 1;
    transform: rotate(45deg) translateY(100%);
}

.developer-image:hover img {
    transform: scale(1.05);
}

.developer-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.developer-details h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

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

.developer-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.developer-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.developer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

/* Developer Education Section */
.developer-education {
    padding: 100px 0;
    background: var(--bg-alternate);
    position: relative;
}

.developer-education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/dots-pattern.svg');
    background-size: 30px;
    opacity: 0.05;
    pointer-events: none;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.education-card, .skills-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.education-card:hover, .skills-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.education-card::before, .skills-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px 0 0 5px;
}

.education-icon, .skills-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.education-card h3, .skills-card h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.education-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-card li {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(var(--text-secondary-rgb), 0.1);
    position: relative;
}

.education-card li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.degree {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.institution {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.year {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--accent-color);
    padding: 5px 12px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 20px;
    margin-top: 5px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    margin-bottom: 5px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-name::after {
    content: attr(data-level);
    color: var(--accent-color);
    font-size: 0.9rem;
}

.skill-bar {
    height: 8px;
    background: rgba(var(--text-secondary-rgb), 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    position: relative;
    width: 0;
    transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Developer Projects Section */
.developer-projects {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 60px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.4) 0%,
        transparent 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 15px;
}

.project-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.project-info p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.project-tag {
    padding: 6px 15px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.project-link {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-link.demo {
    background: var(--primary-color);
    color: #fff;
}

.project-link.code {
    background: rgba(var(--text-secondary-rgb), 0.1);
    color: var(--text-primary);
}

.project-link:hover {
    transform: translateY(-5px);
}

/* Developer Contact Section */
.developer-contact {
    padding: 100px 0;
    background: var(--bg-alternate);
    position: relative;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.contact-card a {
    color: var(--primary-color);
    transition: all 0.3s ease;
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-form .form-group:nth-child(3),
.contact-form .form-group:nth-child(4),
.contact-form button {
    grid-column: 1 / -1;
}

.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.form-group.focused label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-secondary);
    padding: 0 5px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(var(--text-secondary-rgb), 0.2);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-secondary);
    padding: 0 5px;
    color: var(--primary-color);
}

.contact-form button {
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form button:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-form button.success {
    background: #28a745;
}

.contact-form button i {
    font-size: 1.2rem;
}

/* Animations */
@keyframes subtleFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-20px) scale(1.05);
    }
}

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

/* Responsive Adjustments */
@media (max-width: 992px) {
    .developer-info {
        grid-template-columns: 1fr;
    }
    
    .developer-image {
        height: 400px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .developer-details {
        text-align: center;
        padding: 20px;
    }
    
    .developer-details h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .developer-social {
        justify-content: center;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .developer-hero h1 {
        font-size: 3rem;
    }
    
    .developer-hero p {
        font-size: 1.1rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 30px;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
}
