/* Base Styles */
:root {
    --primary: #0a0f1a;         /* Dark navy blue for primary elements */
    --primary-light: #1a2233;   /* Lighter navy blue */
    --primary-dark: #05080f;    /* Darker navy blue */
    --secondary: #f6ad55;       /* Brighter orange for accents */
    --accent: #f56565;          /* Brighter red for important actions */
    --light: #2d3748;           /* Dark gray-blue for backgrounds */
    --dark: #f7fafc;            /* Very light gray text for best contrast */
    --gray: #cbd5e0;            /* Lighter gray text */
    --light-gray: #4a5568;      /* Darker gray for borders */
    --white: #1a202c;           /* Dark background */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Typography */
body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--primary-dark);
    background-image: radial-gradient(circle at center, var(--primary-light) 0%, var(--primary-dark) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Patrick Hand SC', cursive;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--dark);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 { font-size: 2.5rem; }
h2 { 
    font-size: 2rem;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: rgba(26, 32, 44, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--secondary);
    color: #1a202c;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-shadow: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.btn-primary {
    background-color: var(--secondary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: #1a202c;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(221, 107, 32, 0.3);
}


/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 19, 27, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Patrick Hand SC', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.logo:hover {
    color: #f6ad55;
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a:not(.btn):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover:not(.btn):after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 2rem 0 5rem;
    background: linear-gradient(135deg, #1a1f2b 0%, #0f131b 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTAwMCAxMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgzMCkiPjxwYXRoIGQ9Ik0wIDBoMTAwdjEwMEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0wIDB2MTAwIiBzdHJva2U9IiNlZWVlZWUiIHN0cm9rZS13aWR0aD0iMC41IiBzdHJva2Utb3BhY2l0eT0iMC4yIi8+PC9wYXR0ZXNuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIiBvcGFjaXR5PSIwLjEiLz48L3N2Zz4=');
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.book-cover {
    flex: 1;
    max-width: 400px;
    aspect-ratio: 2/3;
    border-radius: 8px;
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: white;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-cover:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-10px);
    box-shadow: 30px 30px 80px rgba(0, 0, 0, 0.3);
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Nunito', sans-serif;
}

.teaser {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--dark);
    line-height: 1.8;
    max-width: 90%;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.book-details {
    color: var(--dark);
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--dark);
    opacity: 0.95;
}

.benefits {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.benefits h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.benefits ul {
    list-style: none;
    padding-left: 1.5rem;
}

.benefits li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    color: var(--dark);
    line-height: 1.7;
}

.benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
    top: 0.1rem;
}

/* Characters Section */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.character-card {
    background: rgba(40, 45, 60, 0.7);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: auto;
    min-height: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.character-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.character-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    z-index: 1;
}

.character-image:hover img {
    opacity: 0;
    transform: scale(1.1);
}

.character-image:hover .character-video {
    opacity: 1;
    transform: scale(1);
}

.character-card:hover .character-image img {
    transform: scale(1.05);
}

.character-card h3 {
    color: #ffffff;
    margin: 1.2rem 0 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.character-card p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.5rem 0 1rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
    opacity: 0.95;
}

.character-description {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.character-details {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    width: 100%;
    text-align: left;
}

.character-details li {
    padding-left: 1.5em;
    text-indent: -1.5em;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    position: relative;
    color: #e0e0e0;
}

.character-details li:before {
    content: '•';
    color: var(--secondary);
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
    margin-left: -1.5em;
    position: relative;
    top: -0.1em;
}

.character-details strong {
    color: #ffffff;
    font-weight: 600;
}

.character-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.character-image.echo {
    background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 100%);
}

.character-image.fips {
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
}

.character-image.nebra {
    background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 100%);
}

.character-image.drogo {
    background: linear-gradient(135deg, #fca5a5 0%, #ef4444 100%);
}

/* Book Preview Section */
.book-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 1.5rem;
    background: rgba(15, 19, 27, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.book-page {
    background: rgba(26, 32, 44, 0.7);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-page:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: rgba(32, 39, 55, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
}

.page-content {
    font-style: normal;
    color: var(--dark);
    line-height: 1.8;
    font-size: 1.05rem;
    opacity: 0.95;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-content h4 {
    color: var(--secondary);
    margin: 0 0 1.2rem 0;
    font-size: 1.4rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.5px;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(246, 173, 85, 0.3);
}

/* Audience Section */
.audience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.audience-parents,
.audience-kids {
    background: rgba(26, 32, 44, 0.7);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    height: 100%;
}

.audience-parents:hover,
.audience-kids:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: rgba(32, 39, 55, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.audience h3 {
    color: var(--secondary);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(246, 173, 85, 0.3);
}

/* Benefits Section */
.benefits h3 {
    color: #ffffff;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Series Section */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 1.5rem;
    background: rgba(15, 19, 27, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.book-card {
    position: relative;
    background: rgba(26, 32, 44, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
}

.book-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: rgba(32, 39, 55, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

.book-cover-small {
    height: 200px;
    background: linear-gradient(145deg, #6a8cff 0%, #4a6bcf 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Removed coming-soon and placeholder styles as all books are now available */

.badge {
    position: absolute;
    top: 3.5rem;  
    right: -2rem;
    background: var(--accent);
    color: white;
    padding: 0.4rem 2rem;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: bold;
    width: 150px;
    text-align: center;
    opacity: 0.9;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.book-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
}

.book-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.book-info p {
    color: #b0b0b0;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: auto;
    align-self: flex-start;
}

/* Purchase Section */
.purchase-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0 2rem;
    padding: 1.5rem;
    background: rgba(15, 19, 27, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative; /* Ensure stacking context */
    z-index: 1; /* Lower than dropdown menu */
}

.purchase-option {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    background: rgba(26, 32, 44, 0.7);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    overflow: hidden;
    cursor: pointer;
}

.purchase-option:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    opacity: 0.8;
    transition: all 0.3s ease;
}

.purchase-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: rgba(32, 39, 55, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(32, 39, 55, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
}

.purchase-option .icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(15, 19, 27, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.purchase-option:hover .icon-container {
    transform: translateY(-3px);
    background: rgba(20, 25, 36, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.purchase-option .icon {
    color: var(--secondary);
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.purchase-option:hover .icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.purchase-option:hover .icon-container {
    transform: scale(1.1) rotate(5deg);
}

.purchase-option .option-text {
    font-weight: 700;
    margin: 1.2rem 0 0.8rem;
    display: block;
    font-size: 1.3rem;
    color: var(--dark);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.purchase-option:hover .option-text {
    color: var(--secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.coming-soon-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.coming-soon-option {
    position: relative;
    opacity: 0.7;
    transition: all 0.3s ease;
    margin: 15px 0 10px 0;
    z-index: 1;
}

/* Amazon Dropdown Styles */
.amazon-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 10001; /* Ensure the dropdown container is above other elements */
}

.dropdown-toggle {
    position: relative;
    padding-right: 2.5rem;
}

.dropdown-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.dropdown-toggle:hover .dropdown-arrow {
    color: var(--secondary);
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    right: 0;
    background: rgba(32, 39, 55, 0.98);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 10000; /* Increased z-index to ensure it stays on top */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    backdrop-filter: blur(10px);
    margin-top: 5px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    will-change: transform, opacity; /* Optimize for animations */
}

.amazon-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--secondary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(20, 25, 36, 0.8);
    color: var(--secondary);
    padding-left: 1.6rem;
}

.dropdown-item:hover:before {
    transform: scaleY(1);
}

.dropdown-item.coming-soon {
    color: var(--gray);
    cursor: not-allowed;
    position: relative;
}

.coming-soon-badge {
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.8rem;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
}

.dropdown-menu:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.purchase-option small {
    display: block;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.purchase-option:hover small {
    opacity: 1;
    color: var(--dark);
}

.book-specs {
    width: 100%;
    text-align: center;
    color: var(--dark);
    font-size: 1rem;
    margin: 2rem auto 0;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border-left: 3px solid var(--secondary);
    max-width: 600px;
    box-sizing: border-box;
    opacity: 0.9;
    line-height: 1.6;
}

/* Author Section */
.author {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.book-cover {
    flex: 0 0 300px;
    position: relative;
    margin-right: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.book-cover-small {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 150%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.book-cover-small .book-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-small:hover .book-cover-image {
    transform: scale(1.02);
}

.author-image {
    flex: 0 0 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.author-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.author-image a {
    display: block;
    transition: transform 0.3s ease;
}

.author-image:hover a {
    transform: scale(1.02);
}

.author-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.author-image:hover .author-photo {
    transform: scale(1.05);
}

.author-placeholder {
    width: 100%;
    height: 300px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1rem;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    padding: 1.5rem;
    background: rgba(15, 19, 27, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-info h2 {
    text-align: left;
    transform: none;
    left: 0;
    margin: 0 0 1.5rem 0;
    color: var(--secondary);
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(246, 173, 85, 0.3);
    font-size: 1.8rem;
}

/* Contact Details Section */
.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-method {
    margin-bottom: 0.5rem;
}

.contact-label {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-text {
    font-weight: 500;
    flex-grow: 1;
}

/* Specific styles for each contact method */
.contact-link.email {
    background: rgba(255, 255, 255, 0.05);
}

.contact-link.email .contact-icon {
    background: linear-gradient(135deg, #4a6cf7, #2541b2);
}

.contact-link.instagram {
    background: rgba(255, 255, 255, 0.05);
}

.contact-link.instagram .contact-icon {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.contact-link.linktree {
    background: rgba(255, 255, 255, 0.05);
}

.contact-link.linktree .contact-icon {
    background: linear-gradient(135deg, #39E09B, #00D474);
}

/* Hover effects */
.contact-link:hover .contact-icon {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-link {
        padding: 0.7rem 1rem;
    }
    
    .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

.newsletter {
    background: rgba(26, 32, 44, 0.7);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.newsletter:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    opacity: 0.8;
}

.newsletter h3 {
    color: var(--secondary);
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(246, 173, 85, 0.3);
}

.newsletter p {
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group {
    width: 100%;
    margin-bottom: 0.2rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(15, 19, 27, 0.5);
    color: var(--dark);
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: rgba(32, 39, 55, 0.8);
    box-shadow: 0 0 0 2px rgba(246, 173, 85, 0.2);
}

.newsletter .btn-primary {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    width: 100%;
    font-weight: 600;
    background: linear-gradient(135deg, var(--secondary) 0%, #ed8936 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(237, 100, 50, 0.2);
    transition: all 0.3s ease;
}

.newsletter .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(237, 100, 50, 0.3);
    filter: brightness(1.1);
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    padding: 0.8rem;
    background: rgba(15, 19, 27, 0.3);
    border-radius: 6px;
    border-left: 3px solid var(--secondary);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 2rem;
    font-size: 0.9rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: 'Patrick Hand SC', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .characters-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .character-card {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .characters-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .character-card {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .book-cover {
        margin-bottom: 2rem;
    }
    
    .author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin-bottom: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 7rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .audience {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .series-grid {
        grid-template-columns: 1fr;
    }
    
    .purchase-options {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .character-card, .book-card {
        padding: 1.5rem;
    }
    
    .book-cover-small {
        height: 160px;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 1.5rem;
        width: 120px;
    }
}

/* Footer Powered By Styles */
.footer-powered {
    display: flex;
    align-items: center;
}

.powered-by-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.powered-by-link:hover {
    opacity: 0.8;
}

.powered-by-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* Hero Logo Styles */
.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-logo-circle {
    display: inline-block;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
