/* ==========================================================================
   TURN.JS FLIPBOOK & PAGE CONTAINERS
   ========================================================================== */
#flipbook {
    width: 960px;
    height: 600px;
    position: relative;
    transition: margin-left 0.4s ease-in-out;
}

#flipbook .page {
    width: 480px;
    height: 600px;
    background-color: var(--pure-white);
    background-size: 100% 100%;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

#flipbook .hard {
    background-color: var(--dark-navy);
    color: var(--pure-white);
    font-weight: bold;
}

/* Page Inner Content Padding */
.page-content {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Container holding the #flipbook element */
.flipbook-viewport,
.brochure-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* Center wrapper inside viewport */
.brochure-viewport {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* Moving container wrapper */
#flipbook-container {
    width: 960px;
    height: 600px;
    position: relative;
    transition: transform 0.4s ease-in-out;
}

/* Offsets to shift single cover pages into the true center */
#flipbook-container.center-page-1 {
    transform: translateX(-240px);
}

#flipbook-container.center-page-last {
    transform: translateX(240px);
}

#flipbook-container.center-spread {
    transform: translateX(0);
}

.page-number-footer {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 0.75rem;
    color: var(--steel-gray);
}

/* ==========================================================================
   COVER PAGE DESIGN
   ========================================================================== */
.cover-page {
    position: relative;
    background-color: #030712;
    overflow: hidden;
    color: #ffffff;
}

.tech-gradient-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, #0a192f 0%, #030712 75%);
    z-index: 1;
}

.glow-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    z-index: 2;
    pointer-events: none;
}

.glow-orb.top-right {
    top: -80px;
    right: -80px;
    background: #014caf;
    opacity: 0.3;
}

.glow-orb.bottom-left {
    bottom: -80px;
    left: -80px;
    background: #3a86ff;
    opacity: 0.25;
}

.geo-panel {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.geo-1 {
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.geo-2 {
    bottom: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: linear-gradient(45deg, rgba(58, 134, 255, 0.05) 0%, transparent 80%);
    clip-path: polygon(0 20%, 80% 100%, 0 100%);
}

.cover-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 30px;
}

.brand-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 5px;
    margin: 0;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-top: 6px;
    text-transform: uppercase;
}

.tech-divider {
    width: 100px;
    height: 3px;
    margin: 22px auto;
    background: linear-gradient(90deg, #8b8b8b, #a7a4a4);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(155, 154, 154, 0.5);
}

.brand-tagline {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fcf9f9;
    margin: 0;
    letter-spacing: 0.5px;
}

.brand-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 245, 212, 0.4));
}

/* ==========================================================================
   PRODUCT & SERVICE CARDS
   ========================================================================== */
.product-card {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #E5E7EB;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(18, 60, 135, 0.15);
    border-color: var(--primary-blue);
}

.product-price {
    font-family: var(--font-price);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.btn-accent {
    background-color: var(--accent-red);
    color: var(--pure-white);
    border: none;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.btn-accent:hover {
    background-color: #c71319;
    color: var(--pure-white);
}

.quote-box {
    background-color: #f8f9fa;
    border-left-color: var(--primary-blue) !important;
}

.pillar-card {
    transition: all 0.25s ease;
    border-color: #E5E7EB !important;
}

.pillar-card:hover {
    transform: translateX(4px);
    background-color: #FFFFFF !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 4px 12px rgba(18, 60, 135, 0.08);
}

.pillar-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue) !important;
    flex-shrink: 0;
}

/* ==========================================================================
   PILLAR COLOR SYSTEM & HEADERS
   ========================================================================== */
:root {
    --pillar-systems: #4caf50;
    --pillar-tech: #3b82f6;
    --pillar-merch: #f59e0b;
    --pillar-media: #ef4444;
    --pillar-creative: #8b5cf6;
}

.pillar-header.media-theme { background-color: var(--pillar-media); }
.pillar-header.merch-theme { background-color: var(--pillar-merch); }
.pillar-header.creative-theme { background-color: var(--pillar-creative); }
.pillar-header.tech-theme { background-color: var(--pillar-tech); }
.pillar-header.systems-theme { background-color: var(--pillar-systems); }

.pillar-product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.pillar-media { border-color: var(--pillar-media); }
.pillar-merch { border-color: var(--pillar-merch); }
.pillar-creative { border-color: var(--pillar-creative); }
.pillar-tech { border-color: var(--pillar-tech); }
.pillar-systems { border-color: var(--pillar-systems); }

.price-media { color: var(--pillar-media); }
.price-merch { color: #d97706; }
.price-creative { color: var(--pillar-creative); }
.price-tech { color: var(--pillar-tech); }
.price-systems { color: var(--pillar-systems); }

.product-img-container {
    background-color: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-dark-blue {
    background-color: #122143 !important;
}

.text-light-blue {
    color: #93c5fd !important;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tracking-wider {
    letter-spacing: 1.5px;
}

/* ==========================================================================
   INTERIOR PAGE PAPER TEXTURE & STYLING
   ========================================================================== */
#flipbook .page:not(.hard) {
    background-color: #fafbfc;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
}

#flipbook .page.even:not(.hard) {
    box-shadow: inset -15px 0 20px -10px rgba(0, 0, 0, 0.08),
                inset -2px 0 5px rgba(0, 0, 0, 0.05);
}

#flipbook .page.odd:not(.hard) {
    box-shadow: inset 15px 0 20px -10px rgba(0, 0, 0, 0.08),
                inset 2px 0 5px rgba(0, 0, 0, 0.05);
}

.page-content .bg-light,
.page-content blockquote,
.page-content .product-card,
.page-content .pillar-card {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(18, 60, 135, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: blur(4px);
}