/* ============================================================
   SITE PREMIUM
   Motion and light on top of each page's own design. Uses only the
   brand colours (#1a3c34, #2a5c50, #ffd700). Works with
   assets/js/site-premium.js, which adds the pt-* elements and classes.
   ============================================================ */

/* ---------- Reading progress line ---------- */
.pt-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, #ffd700, #ffe866, #ffd700);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    z-index: 10001;
    pointer-events: none;
}

/* ---------- Header: gold hairline once scrolled, growing underline on hover ---------- */
.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.header.scrolled::after {
    opacity: 1;
}

@media (min-width: 993px) {
    .nav-links a:not(.active)::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 50%;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: #ffd700;
        transform: translateX(-50%) scaleX(0);
        transition: transform 0.3s ease;
    }

    .nav-links a:not(.active):hover::after {
        transform: translateX(-50%) scaleX(1);
    }
}

/* ---------- Hero: aurora light and tech grid ---------- */
/* Above the page's own hero overlay (z-index 2 at most), below the text (z-index 3) */
.pt-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.pt-aurora::before {
    /* faint grid, fading out towards the edges */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%);
}

.pt-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.pt-blob-gold {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.40), rgba(255, 215, 0, 0) 70%);
    animation: pt-drift-a 18s ease-in-out infinite alternate;
}

.pt-blob-green {
    width: 620px;
    height: 620px;
    bottom: -260px;
    left: -160px;
    background: radial-gradient(circle, rgba(42, 92, 80, 0.85), rgba(42, 92, 80, 0) 70%);
    animation: pt-drift-b 22s ease-in-out infinite alternate;
}

.pt-blob-soft {
    width: 360px;
    height: 360px;
    top: 30%;
    left: 45%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0) 70%);
    animation: pt-drift-c 26s ease-in-out infinite alternate;
}

/* Orbit rings behind the title, each with a travelling gold light */
.pt-orbit {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 760px;
    height: 760px;
    margin: -380px 0 0 -380px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.2);
    animation: pt-spin 38s linear infinite;
}

.pt-orbit i {
    position: absolute;
    top: -4px;
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd700;
    box-shadow: 0 0 16px 5px rgba(255, 215, 0, 0.55);
}

.pt-orbit-2 {
    width: 1120px;
    height: 1120px;
    margin: -560px 0 0 -560px;
    border-color: rgba(255, 255, 255, 0.07);
    border-style: dashed;
    animation-duration: 64s;
    animation-direction: reverse;
}

.pt-orbit-2 i {
    width: 6px;
    height: 6px;
    top: -3px;
    background: #fff6b0;
}

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

@keyframes pt-drift-a {
    to { transform: translate(-140px, 90px) scale(1.15); }
}

@keyframes pt-drift-b {
    to { transform: translate(160px, -70px) scale(1.1); }
}

@keyframes pt-drift-c {
    to { transform: translate(-220px, -40px) scale(0.85); }
}

/* Curved bottom edge, coloured like the section below (set by the script) */
.pt-curve {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    width: 100%;
    z-index: 4;
    pointer-events: none;
    display: block;
}

.pt-curve path {
    fill: var(--pt-next-bg, #fff);
}

.pt-curve .pt-curve-line {
    fill: none;
    stroke: rgba(255, 215, 0, 0.55);
    stroke-width: 1.5;
}

.pt-hero {
    overflow: hidden;
}

/* The section under the hero tucks 3px over the hero's bottom edge, so no
   hairline seam shows where the hero ends on a fraction of a pixel (phones) */
.pt-under-banner {
    margin-top: -3px;
}

/* Keep hero text above the light */
.pt-hero > .container {
    position: relative;
    z-index: 3;
}

/* ---------- Hero: title shimmer and entrance ---------- */
.pt-hero h1 span,
.hero h1 span {
    background: linear-gradient(100deg, #ffd700 0%, #ffd700 40%, #fff6b0 50%, #ffd700 60%, #ffd700 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pt-shimmer 6s ease-in-out infinite;
}

@keyframes pt-shimmer {
    0%, 60% { background-position: 100% 0; }
    100% { background-position: -50% 0; }
}

.pt-enter {
    opacity: 0;
    animation: pt-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes pt-rise {
    from { opacity: 0; transform: translateY(26px); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Hero action buttons ---------- */
.pt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.pt-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.pt-btn-gold {
    background: #ffd700;
    color: #1a3c34;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.35);
}

.pt-btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(255, 215, 0, 0.5);
    color: #1a3c34;
}

.pt-btn-ghost {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.pt-btn-ghost:hover {
    transform: translateY(-3px);
    border-color: #ffd700;
    color: #ffd700;
}

/* ---------- Section headings: gold word with depth ---------- */
.section-header h2 span,
h2.section-title span,
.section-title span {
    background: linear-gradient(135deg, #ffd700 0%, #e6c200 55%, #c9a800 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dark mode: headings were dark green on a dark background */
[data-theme="dark"] .section-header h2,
[data-theme="dark"] h2.section-title {
    color: #f1f5f9;
}

/* ---------- Cards: cursor spotlight and glowing border ---------- */
.pt-card {
    isolation: isolate;
}

.pt-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 215, 0, 0.10), transparent 45%);
}

/* Gold border that lights up where the cursor is */
.pt-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 215, 0, 0.95), rgba(255, 215, 0, 0.15) 60%, transparent 80%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.pt-card:hover .pt-glow {
    opacity: 1;
}

.pt-card:hover {
    box-shadow: 0 24px 60px rgba(26, 60, 52, 0.16), 0 0 0 1px rgba(255, 215, 0, 0.12);
}

/* Cards rise into view as you scroll. Nothing is hidden in advance: the
   animation only plays once a card reaches the screen. */
.pt-reveal.pt-in {
    animation: pt-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: var(--pt-delay, 0s);
}

/* ---------- Gold buttons: light sweep ---------- */
.pt-shine {
    overflow: hidden;
    isolation: isolate;
}

.pt-shine-bar {
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-20deg);
    z-index: 1;
}

.pt-shine:hover .pt-shine-bar {
    animation: pt-sweep 0.75s ease;
}

@keyframes pt-sweep {
    to { left: 130%; }
}

/* ---------- Call-to-action blocks: glowing light ---------- */
.cta-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    right: -140px;
    top: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.22), rgba(255, 215, 0, 0) 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
    animation: pt-drift-a 16s ease-in-out infinite alternate;
}

.cta-section > .container {
    position: relative;
    z-index: 1;
}

/* ---------- Footer: glowing gold line on top ---------- */
footer {
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 90%);
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    box-shadow: 0 0 18px 1px rgba(255, 215, 0, 0.45);
    pointer-events: none;
}

/* ---------- Respect people who turn motion off ---------- */
@media (prefers-reduced-motion: reduce) {
    .pt-blob,
    .pt-orbit,
    .cta-section::after,
    .pt-hero h1 span,
    .hero h1 span {
        animation: none;
    }

    .pt-enter,
    .pt-reveal.pt-in {
        opacity: 1;
        animation: none;
    }

    .pt-shine:hover .pt-shine-bar {
        animation: none;
    }
}

@media (max-width: 768px) {
    .pt-blob-gold { width: 320px; height: 320px; }
    .pt-blob-green { width: 380px; height: 380px; }
    .pt-blob-soft { display: none; }
    .pt-orbit { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
    .pt-orbit-2 { width: 640px; height: 640px; margin: -320px 0 0 -320px; }
    .pt-curve { height: 32px; }
}
