/* I.L. Jordan Author Website - Ultra Modern Black & Baby Pink Theme */
/* FIXED VERSION - Content always visible, animations enhance experience */

:root {
    --black: #050505;
    --dark: #0a0a0f;
    --darker: #07070a;
    --card-bg: rgba(15, 15, 20, 0.7);
    --baby-pink: #ffb6c1;
    --light-pink: #ffc0cb;
    --hot-pink: #ff69b4;
    --deep-pink: #ff1493;
    --pink-glow: rgba(255, 182, 193, 0.4);
    --white: #ffffff;
    --off-white: #f0f0f5;
    --gray: #888899;
    --gradient-pink: linear-gradient(135deg, #ffb6c1 0%, #ff69b4 50%, #ff1493 100%);
    --gradient-dark: linear-gradient(180deg, #050505 0%, #0a0a0f 50%, #07070a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    background: var(--darker);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--baby-pink);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    transform: scale(2);
    background: var(--baby-pink);
}

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Glassmorphism Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 182, 193, 0.1);
    padding: 15px 0;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--baby-pink);
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-pink);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.logo:hover::after {
    transform: translateX(0);
}

.logo span {
    color: var(--white);
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-pink);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--baby-pink);
}

.nav-links a:hover::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--baby-pink);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section - Ultra Modern */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
    padding: 120px 40px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(255, 182, 193, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 20, 147, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 105, 180, 0.05) 0%, transparent 60%);
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 1000px;
    position: relative;
}

/* FIXED: Hero elements visible by default, animated when JS loads */
.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 182, 193, 0.1);
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--baby-pink);
    margin-bottom: 40px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-badge.animate {
    opacity: 0;
    transform: translateY(30px);
}

.hero-badge.animate.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    margin-bottom: 20px;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-title.animate {
    opacity: 0;
    transform: translateY(50px);
}

.hero-title.animate.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-title .char {
    display: inline-block;
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--off-white);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-subtitle.animate {
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle.animate.active {
    opacity: 1;
    transform: translateY(0);
}

.tagline-container {
    position: relative;
    height: 60px;
    margin-bottom: 50px;
    overflow: hidden;
}

.tagline {
    font-size: 1.3rem;
    color: var(--baby-pink);
    letter-spacing: 2px;
    font-style: italic;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-buttons.animate {
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons.animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

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

.btn-primary {
    background: var(--gradient-pink);
    color: var(--black);
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 182, 193, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 182, 193, 0.1);
    border-color: var(--baby-pink);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.scroll-indicator.animate {
    opacity: 0;
}

.scroll-indicator.animate.active {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--baby-pink);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 10px; opacity: 1; }
    50% { top: 25px; opacity: 0.3; }
}

/* Section Styles */
.section {
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 182, 193, 0.1);
    border: 1px solid rgba(255, 182, 193, 0.2);
    border-radius: 30px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--baby-pink);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #ffb6c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 182, 193, 0.15);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(255, 182, 193, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(255, 105, 180, 0.15);
}

/* Book Section */
.book-section {
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.book-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.book-cover-container {
    position: relative;
    perspective: 1000px;
}

.book-cover {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-cover:hover {
    transform: rotateY(-10deg) rotateX(5deg);
}

.book-cover img {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 182, 193, 0.2);
    transition: all 0.4s ease;
}

.book-cover::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-pink);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(30px);
}

.book-info h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 30px;
    font-style: italic;
}

.book-blurb {
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

/* Tropes */
.tropes-section h4 {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--baby-pink);
    margin-bottom: 20px;
}

.tropes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trope-tag {
    padding: 10px 20px;
    background: rgba(255, 182, 193, 0.1);
    border: 1px solid rgba(255, 182, 193, 0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.trope-tag:hover {
    background: rgba(255, 182, 193, 0.2);
    border-color: var(--baby-pink);
    transform: scale(1.05);
}

/* Versions Grid */
.versions-section {
    margin-top: 50px;
}

.versions-section h4 {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--baby-pink);
    margin-bottom: 25px;
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.version-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 182, 193, 0.15);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-pink);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.version-card:hover {
    background: rgba(255, 182, 193, 0.05);
    border-color: rgba(255, 182, 193, 0.4);
    transform: translateY(-5px);
}

.version-card:hover::before {
    transform: scaleX(1);
}

.version-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.version-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.version-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--baby-pink);
    transition: gap 0.3s ease;
    text-decoration: none;
}

.version-link:hover {
    gap: 15px;
}

.signed-preorder-btn {
    margin-top: 40px;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.4);
}

/* Events Section */
.events-section {
    background: var(--dark);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.event-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 182, 193, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-pink);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.event-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 182, 193, 0.3);
    box-shadow: 0 40px 80px rgba(255, 105, 180, 0.2);
}

.event-card:hover::before {
    opacity: 0.05;
}

.event-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 182, 193, 0.2);
}

.event-date-badge .month {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--baby-pink);
}

.event-date-badge .day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.event-content {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.event-name {
    font-size: 1.6rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.event-card:hover .event-name {
    color: var(--baby-pink);
}

.event-location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.event-location i {
    color: var(--baby-pink);
}

.event-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* Author Section */
.author-section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
}

.author-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.author-images {
    position: relative;
}

.author-image-main {
    position: relative;
    z-index: 2;
}

.author-image-main img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.author-image-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    z-index: 3;
}

.author-image-secondary img {
    width: 100%;
    border-radius: 16px;
    border: 4px solid var(--dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.author-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--gradient-pink);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 1;
}

.author-bio h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-bio p {
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

/* Quote Box */
.quote-box {
    background: rgba(255, 182, 193, 0.05);
    border-left: 4px solid var(--baby-pink);
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 16px 16px 0;
}

.quote-box h4 {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--baby-pink);
    margin-bottom: 20px;
}

.quotes-list {
    list-style: none;
}

.quotes-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.quotes-list li::before {
    content: '"';
    position: absolute;
    left: 0;
    color: var(--baby-pink);
    font-size: 2rem;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

/* Publishers */
.publishers-section {
    margin-top: 50px;
}

.publishers-section h4 {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--baby-pink);
    margin-bottom: 25px;
}

.publishers-grid {
    display: flex;
    gap: 30px;
    align-items: center;
}

.publisher-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 182, 193, 0.15);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    text-decoration: none;
}

.publisher-card:hover {
    border-color: rgba(255, 182, 193, 0.4);
    transform: translateY(-5px);
}

.publisher-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.publisher-card.sq {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(255, 182, 193, 0.1));
}

.publisher-card.sq .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--baby-pink);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 182, 193, 0.05);
    border: 1px solid rgba(255, 182, 193, 0.2);
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--baby-pink);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-pink);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    border-color: transparent;
    transform: translateY(-5px) rotate(360deg);
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.social-link:hover i {
    color: var(--black);
}

/* Gallery Section */
.gallery-section {
    background: var(--darker);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item:hover {
    transform: scale(1.03);
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.3rem;
    color: var(--baby-pink);
    margin-bottom: 8px;
}

.gallery-overlay p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-email-wrapper {
    margin: 50px 0;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 25px 50px;
    background: rgba(255, 182, 193, 0.05);
    border: 1px solid rgba(255, 182, 193, 0.2);
    border-radius: 50px;
    font-size: 1.3rem;
    color: var(--white);
    transition: all 0.4s ease;
    text-decoration: none;
}

.contact-email:hover {
    background: rgba(255, 182, 193, 0.1);
    border-color: var(--baby-pink);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.2);
}

.contact-email i {
    color: var(--baby-pink);
    font-size: 1.5rem;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.contact-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 50px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 182, 193, 0.15);
    border-radius: 24px;
    min-width: 200px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.contact-social-card:hover {
    border-color: rgba(255, 182, 193, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(255, 105, 180, 0.15);
}

.contact-social-card i {
    font-size: 3rem;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-social-card span {
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--gray);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--gradient-pink);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.1;
}

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

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-top: 50px;
}

.newsletter-form input {
    flex: 1;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 182, 193, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--baby-pink);
    background: rgba(255, 182, 193, 0.05);
    box-shadow: 0 0 30px rgba(255, 182, 193, 0.1);
}

.newsletter-form input::placeholder {
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--darker);
    border-top: 1px solid rgba(255, 182, 193, 0.1);
    padding: 70px 40px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.08);
}

.footer-brand {}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    display: inline-block;
}

.footer-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--baby-pink);
    margin-bottom: 22px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-nav a:hover {
    color: var(--baby-pink);
    padding-left: 6px;
}

.footer-email {
    margin-bottom: 28px;
}

.footer-email a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
    word-break: break-all;
}

.footer-email a:hover {
    color: var(--baby-pink);
}

.footer-email a i {
    color: var(--baby-pink);
    flex-shrink: 0;
}

.footer-publisher-label {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 6px;
}

.footer-publishers {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.82rem;
}

.footer-admin-link {
    color: rgba(255, 255, 255, 0.15) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-admin-link:hover {
    color: rgba(255, 182, 193, 0.45) !important;
}

/* Event Detail Popup */
.event-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
}

.event-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.event-popup {
    background: var(--darker);
    border: 1px solid rgba(255, 182, 193, 0.2);
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 182, 193, 0.06);
}

.event-popup-overlay.active .event-popup {
    transform: scale(1) translateY(0);
}

.event-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 182, 193, 0.1);
    border: 1px solid rgba(255, 182, 193, 0.2);
    color: var(--baby-pink);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
    padding: 0;
}

.event-popup-close:hover {
    background: rgba(255, 182, 193, 0.22);
    color: var(--hot-pink);
}

.event-popup-image-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.event-popup-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-popup-date-badge {
    position: absolute;
    bottom: 16px;
    left: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 12px;
    padding: 8px 16px;
    text-align: center;
    min-width: 56px;
}

.event-popup-date-badge .month {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--baby-pink);
    font-weight: 600;
}

.event-popup-date-badge .day {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.event-popup-body {
    padding: 28px 30px 30px;
}

.event-popup-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-popup-location,
.event-popup-date-text {
    color: var(--baby-pink);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-popup-date-text {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 18px;
}

.event-popup-desc {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 26px;
}

.event-details-btn {
    margin-top: 16px;
    font-size: 0.85rem;
    padding: 10px 20px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: var(--baby-pink);
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--hot-pink);
}

.lightbox-title {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--baby-pink);
    white-space: nowrap;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: 20px 30px;
    border-radius: 16px;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: rgba(0, 255, 100, 0.15);
    border: 1px solid rgba(0, 255, 100, 0.3);
    color: #90ee90;
}

.notification.error {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 182, 193, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 182, 193, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* FIXED: Reveal Animation Classes - Content visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When JS is enabled, add animation capabilities */
.js-enabled .reveal.animate {
    opacity: 0;
    transform: translateY(50px);
}

.js-enabled .reveal.animate.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-enabled .reveal-left.animate {
    opacity: 0;
    transform: translateX(-100px);
}

.js-enabled .reveal-left.animate.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-enabled .reveal-right.animate {
    opacity: 0;
    transform: translateX(100px);
}

.js-enabled .reveal-right.animate.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 1;
    transform: scale(1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-enabled .reveal-scale.animate {
    opacity: 0;
    transform: scale(0.8);
}

.js-enabled .reveal-scale.animate.active {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .book-showcase,
    .author-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .book-cover {
        text-align: center;
    }

    .book-cover img {
        max-width: 350px;
    }

    .author-image-secondary {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .versions-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .book-info h3 {
        font-size: 2rem;
    }

    .book-blurb {
        font-size: 0.95rem;
    }

    .event-card {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer {
        padding: 50px 20px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 40px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 20px 0;
    }

    .event-popup {
        max-height: 85vh;
    }

    .event-popup-image-wrap {
        height: 160px;
    }

    .event-popup-body {
        padding: 22px 20px 24px;
    }

    .event-popup-title {
        font-size: 1.4rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
    
    .contact-socials {
        flex-direction: column;
        align-items: center;
    }

    .publishers-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-layout {
        grid-template-columns: 1fr !important;
    }

    .author-photos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 16px !important;
        justify-items: center;
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 16px !important;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        justify-items: center;
    }

    .quick-links-grid .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .author-photos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 12px !important;
        gap: 10px !important;
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 12px !important;
        gap: 10px !important;
    }

    .quick-links-grid {
        grid-template-columns: 1fr !important;
        justify-items: center;
    }

    .tagline-container {
        height: 80px;
    }

    .hero-title {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .section {
        padding: 50px 16px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        max-width: 100%;
    }

    .event-popup-overlay {
        padding: 10px;
    }

    .event-popup {
        border-radius: 14px;
    }

    .event-popup-image-wrap {
        border-radius: 14px 14px 0 0;
        height: 140px;
    }

    .book-showcase {
        gap: 30px;
    }

    .book-cover img {
        max-width: 240px;
    }

    .tropes-list {
        gap: 8px;
    }

    .version-card {
        padding: 20px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--baby-pink), var(--hot-pink));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--hot-pink), var(--deep-pink));
}

/* Selection */
::selection {
    background: rgba(255, 182, 193, 0.3);
    color: var(--white);
}

/* Content loading state */
.content-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    width: 100%;
}

.content-loading i {
    color: var(--baby-pink);
    font-size: 1.2rem;
}
