/* =====================================================
   INSPIREME — INTERACTIVE FUTURISTIC UI
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #111111;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 82, 26, 0.10), transparent 24%),
        radial-gradient(circle at 80% 12%, rgba(17, 17, 17, 0.06), transparent 32%),
        linear-gradient(180deg, #f7f7f4 0%, #f1f1ee 100%);
    overflow-x: hidden;
}


/* =====================================================
   INTERACTIVE BACKGROUND
===================================================== */

body::before {
    content: "";
    position: fixed;

    width: 500px;
    height: 500px;

    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);

    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.12),
            transparent 65%
        );

    pointer-events: none;

    z-index: -1;

    transition:
        left 0.5s ease,
        top 0.5s ease;
}


.grid-background {
    position: fixed;
    inset: 0;

    z-index: -5;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}


/* =====================================================
   GLOWING ORBS
===================================================== */

.orb {
    position: fixed;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.20;

    pointer-events: none;

    z-index: -4;

    animation:
        floatOrb 9s ease-in-out infinite;
}

.orb-one {
    background: #8b5cf6;

    top: -120px;
    left: -100px;
}

.orb-two {
    background: #06b6d4;

    right: -120px;
    bottom: -100px;

    animation-delay: -4s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform:
            translate(0, 0)
            scale(1);
    }

    50% {
        transform:
            translate(50px, 30px)
            scale(1.15);
    }
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    height: 75px;

    padding: 0 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 100;

    background:
        rgba(255, 255, 255, 0.72);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);

    border-bottom:
        1px solid rgba(17, 17, 17, 0.08);

    box-shadow:
        0 8px 24px rgba(17, 17, 17, 0.04);
}


.logo {
    display: flex;

    align-items: center;

    gap: 12px;
}


.logo-icon {
    width: 41px;
    height: 41px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #111111,
            #f05a28
        );

    box-shadow:
        0 10px 24px rgba(17, 17, 17, 0.12);

    animation:
        logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(139,92,246,0.25);
    }

    50% {
        box-shadow:
            0 0 35px rgba(34,211,238,0.45);
    }
}


.logo h2 {
    font-size: 17px;
}


.logo span {
    display: block;

    margin-top: 2px;

    color: #64748b;

    font-size: 10px;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.header-toggle {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: rgba(17, 17, 17, 0.03);
    color: #111111;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}


.header-toggle:hover,
.header-toggle.active {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.12);
}


.header-badge {
    padding: 8px 14px;

    border-radius: 30px;

    color: #111111;

    background:
        rgba(255,255,255,0.58);

    border:
        1px solid rgba(17, 17, 17, 0.08);

    font-size: 11px;

    transition:
        0.3s ease;
}

.header-badge:hover {
    transform:
        translateY(-2px)
        scale(1.03);

    box-shadow:
        0 8px 25px rgba(139,92,246,0.2);
}


/* =====================================================
   CONTAINER
===================================================== */

.container {
    width: 90%;

    max-width: 950px;

    margin: auto;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    text-align: center;

    padding:
        75px 0 40px;
}


.eyebrow {
    color: #a78bfa;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;

    animation:
        fadeDown 0.8s ease;
}


.hero h1 {
    margin-top: 16px;

    font-size:
        clamp(45px, 8vw, 78px);

    line-height: 0.95;

    letter-spacing: -5px;

    animation:
        heroEnter 0.9s cubic-bezier(.2,.8,.2,1);
}


.hero h1 span {
    background:
        linear-gradient(
            90deg,
            #111111,
            #f05a28,
            #111111
        );

    background-size: 200%;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    animation:
        gradientMove 4s linear infinite;
}


@keyframes gradientMove {

    to {
        background-position:
            200% center;
    }
}


@keyframes heroEnter {

    from {
        opacity: 0;

        transform:
            translateY(30px)
            scale(0.95);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


@keyframes fadeDown {

    from {
        opacity: 0;

        transform:
            translateY(-15px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


.hero p {
    max-width: 520px;

    margin:
        25px auto 0;

    color: #94a3b8;

    line-height: 1.7;

    font-size: 15px;

    animation:
        fadeUp 1s 0.2s both;
}


@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translateY(20px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =====================================================
   QUOTE AREA
===================================================== */

.quote-wrapper {
    position: relative;

    perspective: 1200px;
}


/* =====================================================
   QUOTE CARD
===================================================== */

.quote-card {
    position: relative;

    padding: 40px;

    min-height: 460px;

    border-radius: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.92),
            rgba(245,245,242,0.88)
        );

    border:
        1px solid rgba(17,17,17,0.06);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        0 24px 60px rgba(17, 17, 17, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    transform-style: preserve-3d;

    transition:
        transform 0.12s ease-out,
        box-shadow 0.4s ease;
}


/* Animated border */

.quote-card::before {
    content: "";

    position: absolute;

    inset: -1px;

    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(255, 90, 40, 0.18),
            rgba(17, 17, 17, 0.04),
            rgba(255, 255, 255, 0.14),
            rgba(255, 90, 40, 0.12)
        );

    z-index: -2;
}


.quote-card::after {
    content: "";

    position: absolute;

    inset: 1px;

    border-radius: 29px;

    background:
        rgba(255,255,255,0.24);

    border:
        1px solid rgba(255,255,255,0.5);

    z-index: -1;
}


@keyframes borderRotate {

    to {
        transform:
            rotate(360deg);
    }
}


/* =====================================================
   QUOTE TOP
===================================================== */

.quote-top {
    display: flex;

    justify-content: space-between;

    align-items: center;
}


.quote-label {
    color: #a78bfa;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 2px;
}


.quote-number {
    color: #475569;

    font-size: 11px;
}


/* =====================================================
   QUOTE CONTENT
===================================================== */

.quote-content {
    text-align: center;

    padding:
        35px 20px;

    transform:
        translateZ(30px);
}


.quote-symbol {
    font-family: Georgia, serif;

    font-size: 100px;

    height: 65px;

    line-height: 1;

    color: #f05a28;

    opacity: 0.6;

    animation:
        symbolFloat 3s ease-in-out infinite;
}


@keyframes symbolFloat {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(-3deg);
    }

    50% {
        transform:
            translateY(-7px)
            rotate(3deg);
    }
}


blockquote {
    max-width: 720px;

    margin: auto;

    font-family: "Arial Black", Impact, sans-serif;

    font-size:
        clamp(25px, 4vw, 42px);

    line-height: 1.15;

    letter-spacing: -1px;

    color: #111111;
}


/* =====================================================
   NEW QUOTE TRANSITION
===================================================== */

.quote-enter {
    animation:
        quoteFlip 0.65s cubic-bezier(.2,.8,.2,1);
}


@keyframes quoteFlip {

    0% {
        opacity: 0;

        transform:
            translateY(25px)
            rotateX(-18deg)
            scale(0.94);
    }

    55% {
        opacity: 1;
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            rotateX(0)
            scale(1);
    }
}


/* =====================================================
   AUTHOR
===================================================== */

.author {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 25px;

    color: #666666;

    font-size: 13px;

    transition:
        0.3s ease;
}


.author:hover {
    color: #67e8f9;

    transform:
        scale(1.05);
}


.author-line {
    width: 25px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            #111111,
            #f05a28
        );
}


/* =====================================================
   CATEGORY
===================================================== */

.quote-category {
    text-align: center;
}


.quote-category span {
    display: inline-block;

    padding: 6px 13px;

    border-radius: 30px;

    color: #111111;

    background:
        rgba(17,17,17,0.04);

    border:
        1px solid rgba(17,17,17,0.08);

    font-size: 10px;

    font-weight: 700;

    transition:
        0.3s ease;
}


.quote-category span:hover {
    transform:
        scale(1.08);

    box-shadow:
        0 0 20px rgba(34,211,238,0.15);
}


/* =====================================================
   ACTIONS
===================================================== */

.quote-actions {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    margin-top: 25px;
}


button {
    position: relative;

    overflow: hidden;

    font-family: inherit;
}


.icon-button,
.copy-button,
.new-quote-button {
    cursor: pointer;
}


.icon-button {
    width: 47px;
    height: 47px;

    border-radius: 14px;

    border:
        1px solid rgba(17,17,17,0.08);

    background:
        rgba(255,255,255,0.6);

    backdrop-filter:
        blur(10px);

    color: #111111;

    font-size: 21px;

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.icon-button:hover {
    color: #fb7185;

    transform:
        translateY(-4px)
        rotate(-5deg);

    box-shadow:
        0 10px 25px rgba(251,113,133,0.15);
}


.icon-button.active {
    color: #fb7185;

    background:
        rgba(251,113,133,0.12);

    animation:
        heartPop 0.45s ease;
}


@keyframes heartPop {

    0% {
        transform: scale(1);
    }

    40% {
        transform:
            scale(1.35)
            rotate(-8deg);
    }

    70% {
        transform:
            scale(0.9);
    }

    100% {
        transform:
            scale(1);
    }
}


.copy-button,
.new-quote-button {
    height: 47px;

    padding:
        0 20px;

    border-radius: 14px;

    font-size: 12px;

    font-weight: 800;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.copy-button {
    color: #111111;

    border:
        1px solid rgba(17,17,17,0.08);

    background:
        rgba(255,255,255,0.65);

    backdrop-filter:
        blur(10px);
}


.copy-button:hover {
    transform:
        translateY(-4px);

    background:
        rgba(255,255,255,0.09);

    box-shadow:
        0 12px 28px rgba(148, 163, 184, 0.14);
}


.new-quote-button {
    color: white;

    border:
        1px solid rgba(17,17,17,0.08);

    background:
        linear-gradient(
            135deg,
            #111111,
            #f05a28
        );

    box-shadow:
        0 16px 32px rgba(17, 17, 17, 0.12);
}


@keyframes buttonGradient {

    to {
        background-position:
            200% 0;
    }
}


.new-quote-button:hover {
    transform:
        translateY(-5px)
        scale(1.02);

    box-shadow:
        0 18px 40px rgba(124,58,237,0.35);
}


.new-quote-button span {
    display: inline-block;

    transition:
        transform 0.5s ease;
}


.new-quote-button:hover span {
    transform:
        rotate(180deg);
}


/* =====================================================
   RIPPLE EFFECT
===================================================== */

.ripple {
    position: absolute;

    border-radius: 50%;

    transform:
        scale(0);

    animation:
        ripple 0.6s linear;

    background:
        rgba(255,255,255,0.25);

    pointer-events: none;
}


@keyframes ripple {

    to {
        transform:
            scale(4);

        opacity: 0;
    }
}


/* =====================================================
   STATS
===================================================== */

.stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin-top: 20px;
}


.stat-card {
    padding: 18px;

    border-radius: 18px;

    background:
        rgba(255,255,255,0.7);

    border:
        1px solid rgba(17,17,17,0.06);

    backdrop-filter:
        blur(12px);

    display: flex;

    align-items: center;

    gap: 12px;

    transition:
        transform 0.3s ease,
        border 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


.stat-card:hover {
    transform:
        translateY(-5px);

    background:
        rgba(255,255,255,0.055);

    border-color:
        rgba(139,92,246,0.25);
}


.stat-icon {
    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    color: #111111;

    background:
        rgba(17,17,17,0.05);

    transition:
        0.3s ease;
}


.stat-card:hover .stat-icon {
    transform:
        rotate(10deg)
        scale(1.1);
}


.stat-card strong {
    display: block;

    font-size: 15px;
}


.stat-card span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 10px;
}


/* =====================================================
   TIP
===================================================== */

.tip {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin:
        25px 0 60px;

    padding: 17px;

    border-radius: 18px;

    background:
        rgba(255,255,255,0.7);

    border:
        1px solid rgba(17,17,17,0.06);

    backdrop-filter:
        blur(12px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6);

    transition:
        0.3s ease;
}


.tip:hover {
    transform:
        translateX(5px);

    background:
        rgba(34,211,238,0.06);

    border-color:
        rgba(34,211,238,0.2);
}


.tip-icon {
    font-size: 20px;

    animation:
        bulb 2s ease-in-out infinite;
}


@keyframes bulb {

    0%,
    100% {
        transform:
            rotate(-5deg)
            scale(1);
    }

    50% {
        transform:
            rotate(5deg)
            scale(1.15);
    }
}


.tip strong {
    color: #111111;

    font-size: 11px;
}


.tip p {
    color: #64748b;

    font-size: 11px;

    line-height: 1.6;

    margin-top: 4px;
}


/* =====================================================
   LOADING
===================================================== */

.loading {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    background:
        rgba(5,5,13,0.72);

    backdrop-filter:
        blur(7px);

    border-radius: 28px;

    z-index: 20;
}


.loading span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #a78bfa,
            #22d3ee
        );

    animation:
        loadingBounce 0.7s infinite alternate;
}


.loading span:nth-child(2) {
    animation-delay: 0.15s;
}


.loading span:nth-child(3) {
    animation-delay: 0.3s;
}


@keyframes loadingBounce {

    to {
        transform:
            translateY(-10px)
            scale(1.2);

        opacity: 0.35;
    }
}


.hidden {
    display: none !important;
}


/* =====================================================
   TOAST
===================================================== */

.toast {
    position: fixed;

    bottom: 30px;

    left: 50%;

    transform:
        translate(-50%, 100px);

    padding:
        11px 18px;

    border-radius: 999px;

    background:
        rgba(17, 17, 17, 0.9);

    color: #f5f5f4;

    font-size: 12px;

    font-weight: 800;

    border:
        1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 15px 40px rgba(17, 17, 17, 0.18);

    backdrop-filter:
        blur(10px);

    opacity: 0;

    transition:
        0.35s cubic-bezier(.2,.8,.2,1);

    z-index: 200;
}


.toast.show {
    transform:
        translate(-50%, 0);

    opacity: 1;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    padding:
        25px 6%;

    display: flex;

    justify-content: space-between;

    color: #475569;

    font-size: 10px;

    border-top:
        1px solid rgba(255,255,255,0.06);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    .navbar {
        padding:
            0 5%;
    }

    .header-badge {
        display: none;
    }

    .container {
        width: 94%;
    }

    .hero {
        padding:
            55px 0 30px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .quote-card {
        padding: 25px 18px;

        min-height: 500px;
    }

    .quote-content {
        padding:
            30px 5px;
    }

    .quote-symbol {
        font-size: 80px;
    }

    .quote-actions {
        flex-wrap: wrap;
    }

    .copy-button {
        flex: 1;
    }

    .new-quote-button {
        width: 100%;
    }

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

    footer {
        flex-direction: column;

        gap: 8px;
    }
}


@media (max-width: 400px) {

    blockquote {
        font-size: 23px;
    }
}