/* ==============================
   WING PUBLISHERS — CORE STYLES
   ============================== */

/* Local Font Loading — Helvetica Neue */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueUltraLight.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueUltraLightItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueThin.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueThinItalic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueLightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueRoman.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueMediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueBoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueHeavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueBlack.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ---- Base & Typography Overrides ---- */
b, strong, .font-bold,
h1, h2, h3, h4, h5, h6,
.nav-link,
.footer-heading {
    font-family: 'Manrope', 'Helvetica Neue', sans-serif !important;
}

body {
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

h1, h2, h3 {
    letter-spacing: -0.02em;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1a3a5c #06121f;
}
html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: #06121f; }
html::-webkit-scrollbar-thumb { background-color: #1a3a5c; border-radius: 20px; }

::selection {
    background: #c5a23e;
    color: #06121f;
}

/* ---- Custom Follower Cursor ---- */
.cursor-dot {
    display: none !important;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(224, 185, 83, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
    transform: translate(-100px, -100px);
    box-shadow: 0 0 10px rgba(224, 185, 83, 0.2);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                backdrop-filter 0.3s ease,
                opacity 0.3s ease;
}

/* Hover transform: Magnifying glass lens effect */
.cursor-outline.hovering {
    width: 48px;
    height: 48px;
    background-color: rgba(224, 185, 83, 0.12);
    border-color: rgba(224, 185, 83, 0.9);
    backdrop-filter: blur(6px) brightness(1.2) contrast(1.05);
    -webkit-backdrop-filter: blur(6px) brightness(1.2) contrast(1.05);
    box-shadow: 0 0 25px rgba(224, 185, 83, 0.4), inset 0 0 15px rgba(224, 185, 83, 0.2);
}

/* Scroll transform: subtle compact ring that recedes gently during scroll */
.cursor-outline.scrolling {
    width: 10px;
    height: 10px;
    opacity: 0.4;
    border-color: rgba(224, 185, 83, 0.5);
    box-shadow: 0 0 8px rgba(224, 185, 83, 0.2);
}

/* Click transform: tight gold dot pulse */
.cursor-outline.clicking {
    width: 12px !important;
    height: 12px !important;
    border-color: #e0b953;
    background-color: rgba(224, 185, 83, 0.6);
    box-shadow: 0 0 15px rgba(224, 185, 83, 0.8);
}

/* ---- Navbar ---- */
.navbar {
    transition: padding 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                background-color 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                backdrop-filter 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                top 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                width 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                max-width 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                left 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                border-radius 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-bottom: 1px solid transparent;
    top: 0;
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-radius: 0;
    transform: none;
}

.nav-inner {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar.scrolled {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    background-color: rgba(6, 18, 31, 0.85) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    
    top: 1.5rem !important;
    width: calc(100% - 3rem) !important;
    max-width: 850px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    border-radius: 100px !important;
    transform: none !important;
}

.nav-logo {
    transition: height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar.scrolled .nav-logo {
    height: 2.2rem !important;
}

/* Scrolled Text Colors */
.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: #c5a23e !important;
}
.navbar.scrolled #menu-toggle span {
    background-color: #ffffff !important;
}

/* ---- Navbar Light Theme Support ---- */
.navbar-light-theme:not(.scrolled) .nav-link {
    color: rgba(6, 18, 31, 0.6);
}
.navbar-light-theme:not(.scrolled) .nav-link:hover,
.navbar-light-theme:not(.scrolled) .nav-link.active {
    color: rgba(6, 18, 31, 1);
}
.navbar-light-theme:not(.scrolled) #menu-toggle span {
    background-color: #06121f;
}

/* ---- Buttons ---- */
.btn-primary,
.btn-outline {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50px !important;
}

.btn-primary::before,
.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}

.btn-primary::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.btn-outline::before {
    background: linear-gradient(90deg, transparent, rgba(197, 162, 62, 0.1), transparent);
}

.btn-primary:hover::before,
.btn-outline:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 162, 62, 0.3);
}

.btn-outline:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.4);
    color: white;
}

/* CTA Links */
.cta-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.cta-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c5a23e;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-link:hover {
    gap: 1rem;
    color: #c5a23e;
}

.cta-link:hover::after {
    width: 100%;
}

/* ---- Marquee (GSAP driven — CSS fallback) ---- */
.marquee-track {
    display: flex;
    width: fit-content;
    will-change: transform;
}

/* ---- GSAP Reveal Hooks ---- */
.animate-reveal {
    opacity: 0;
    transform: translateY(24px);
}

.stagger-reveal > * {
    opacity: 0;
    transform: translateY(24px);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ---- Service Cards ---- */
.service-card {
    position: relative;
    overflow: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #c5a23e;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ======================================
   ENCHANTED / HARRY POTTER-INSPIRED
   ====================================== */

/* ---- Floating Star Particles ---- */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #c5a23e;
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle var(--duration, 8s) var(--delay, 0s) ease-in-out infinite;
    box-shadow: 0 0 4px rgba(197, 162, 62, 0.6),
                0 0 8px rgba(197, 162, 62, 0.3);
}

.particle.large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px rgba(197, 162, 62, 0.8),
                0 0 12px rgba(197, 162, 62, 0.4);
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    15% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    85% {
        opacity: 0.8;
        transform: translateY(-120px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-180px) scale(0);
    }
}

/* ---- Ornamental Divider (Chapter Break) ---- */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 2rem 0;
    opacity: 0.4;
}

.ornament-divider .line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c5a23e, transparent);
}

.ornament-divider .diamond {
    width: 6px;
    height: 6px;
    background: #c5a23e;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.ornament-divider .dot {
    width: 3px;
    height: 3px;
    background: #c5a23e;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Magical Glow on Hover ---- */
.enchanted-glow {
    position: relative;
}

.enchanted-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(197, 162, 62, 0), rgba(197, 162, 62, 0.15), rgba(197, 162, 62, 0));
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.enchanted-glow:hover::before {
    opacity: 1;
}

/* ---- Parchment texture overlay for light sections ---- */
.parchment {
    position: relative;
}

.parchment::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8a070' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.parchment > * {
    position: relative;
    z-index: 1;
}

/* ---- Sparkle cursor trail (on gold buttons) ---- */
.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(197, 162, 62, 0.35),
                0 0 60px rgba(197, 162, 62, 0.1);
}

/* ---- Starfield Background for Dark Sections ---- */
.starfield {
    position: relative;
}

.starfield::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(197, 162, 62, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(197, 162, 62, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 10%, rgba(255, 255, 255, 0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 40%, rgba(197, 162, 62, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 80%, rgba(197, 162, 62, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 35%, rgba(255, 255, 255, 0.12) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 85%, rgba(197, 162, 62, 0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 15%, rgba(255, 255, 255, 0.1) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 25% 45%, rgba(197, 162, 62, 0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 75% 55%, rgba(197, 162, 62, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 95% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.starfield > * {
    position: relative;
    z-index: 1;
}

/* ---- Enchanted Underline (for serif headings) ---- */
.enchanted-underline {
    position: relative;
    display: inline;
}

.enchanted-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c5a23e, transparent);
    opacity: 0.4;
}

/* ======================================
   ADVANCED ANIMATION UTILITIES
   ====================================== */

/* ---- 3D Tilt Card ---- */
.book-tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform;
}

/* ---- Parallax Image Mask ---- */
.parallax-img {
    height: 120%; /* Give room to pan */
    top: -10%; /* Center the overflow */
    position: absolute;
    will-change: transform;
}

/* ---- Magnetic Wrapper ---- */
.magnetic-wrap {
    display: inline-block;
    position: relative;
}

/* ---- Text Split Reveal ---- */
.split-line {
    overflow: hidden;
}
.split-line-inner {
    display: inline-block;
    will-change: transform;
}

 
 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       L I B R A R Y   B O O K   M A R Q U E E 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 @ k e y f r a m e s   m a r q u e e - b o o k s   { 
         0 %   { 
                 t r a n s f o r m :   t r a n s l a t e X ( 0 % ) ; 
         } 
         1 0 0 %   { 
                 t r a n s f o r m :   t r a n s l a t e X ( - 1 0 0 % ) ; 
         } 
 } 
 . a n i m a t e - m a r q u e e - b o o k s   { 
         a n i m a t i o n :   m a r q u e e - b o o k s   4 5 s   l i n e a r   i n f i n i t e ; 
         w i l l - c h a n g e :   t r a n s f o r m ; 
 } 
  
 
/* ======================================
   SOCIAL DOCK + FOOTER + UX CHROME
   ====================================== */

.social-dock {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    background: rgba(3, 20, 36, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.social-dock:hover {
    background: rgba(3, 20, 36, 0.88);
    border-color: rgba(255, 255, 255, 0.22);
}

.social-dock__divider {
    width: 1px;
    height: 1.35rem;
    background: rgba(255, 255, 255, 0.12);
}

.social-dock__btn {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.social-dock__btn svg {
    width: 1.35rem;
    height: 1.35rem;
}

.social-dock__btn:hover {
    transform: translateY(-2px) scale(1.06);
}

.social-dock__btn--whatsapp {
    color: #fff;
    background: #25D366;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.social-dock__btn--instagram {
    color: #fff;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 6px 18px rgba(220, 39, 67, 0.35);
}

.social-dock__btn--email {
    color: #031424;
    background: #e0b953;
    box-shadow: 0 6px 18px rgba(224, 185, 83, 0.35);
}

.footer-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.1rem;
}

.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.62);
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: #e0b953;
}

.footer-social {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.footer-social:hover {
    transform: translateY(-2px);
}

.footer-social--whatsapp { color: #fff; background: #25D366; }
.footer-social--instagram { color: #fff; background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.footer-social--email { color: #031424; background: #e0b953; }

.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 6.5rem;
    z-index: 49;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(3, 20, 36, 0.85);
    color: #e0b953;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover { background: rgba(224, 185, 83, 0.15); }

.legal-prose h2 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 600;
    color: #fff;
    margin: 2.5rem 0 0.85rem;
}

.legal-prose p,
.legal-prose li {
    color: rgba(255, 255, 255, 0.58);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 0.85rem;
}

.legal-prose ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .social-dock {
        bottom: 1rem;
        padding: 0.7rem 1.05rem;
        gap: 0.65rem;
    }
    .social-dock__btn { width: 2.35rem; height: 2.35rem; }
    .scroll-top { right: 0.85rem; bottom: 5.75rem; }
}
