
h2{
    color: #00f2fe;
}
h2{
    color: #f472b6;
}

body {
    background-color: #0b0f19;
    color: #f3f4f6;
    font-family: sans-serif;
    padding: 20px;
    margin: 0;
    background-image:url(bgi.jpeg);
    background-attachment:fixed;
    background-position: center;
    background-size:cover;
    background-repeat: no-repeat;
    margin:0;
    padding:0;

}

a {
    color: #38bdf8;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background: #374151;
    margin: 20px 0;
}

/* Factopia Card Styles */
.fact-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.card-container {
    width: 320px;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-inner.is-flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.card-front {
     background: linear-gradient(135deg, rgba(245, 249, 39, 0.642), rgba(234, 100, 178, 0.4));
    color:linear-gradient; 
}

.card-back {
     background: linear-gradient(135deg, rgba(232, 19, 228, 0.4), rgba(228, 221, 14, 0.4));
    color: #f0f8ff; 
    transform: rotateY(180deg);
}


.cafe-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    margin-top: 30px;
}

.background-container {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(135deg, #e1ea66 0%, #f052b9 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    padding: 30px;
    box-sizing: border-box;
      transition: transform 0.7s ease;
}

.glass-box {
     position: relative;
    z-index: 1; 
    width: 100%;
    padding: 30px; 
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(139, 21, 21, 0.25);
    box-sizing: border-box;
}

.glass-box h2 {
    color: #1a055f;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.glass-box p {
    color: #1860bd;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
  
}
.background-container:hover{
    transform: translateY(-13px);

}

.glitter-container{
    position: absolute;
    top: 0;
    left: 0%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.star{
    position: absolute;
    background: white;
    border-radius: 50%;

    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    opacity: 0;
    animation: floatGlow 4s infinite ease-in;
}

.star1 {top:20%; left: 15%; width: 4px; height: 4px; animation-delay: 0s;}
.star2 {top:40%; left: 80%; width: 3px; height: 3px; animation-delay: 1s;}
.star3 {top:70%; left: 25%; width: 5px; height: 5px; animation-delay: 2.5s;}
.star4 {top:15%; left: 65%; width: 3px; height: 3px; animation-delay: 1.5s;}
.star5 {top:85%; left: 55%; width: 4px; height: 4px; animation-delay: 0.5s;}

@keyframes floatGlow{
    0%{
        opacity: 0;
        transform: translateY(0px) scale(0.8);
    }
    50%{opacity: 0.4;
        transform: translateY(-15px) scale(1.2);
    }
    100{
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
}

.mouse-sparkle{
    position:fixed;
    background:rgb(253, 245, 251);
    border-radius:50%;
    pointer-events:none;
    z-index:9999;
    box-shadow:0 0 8px rgba(183, 64, 185, 0.525), 0 0 15px rgba(255,215,0,0.6);
    transform:translate(-50%, -50%);
    animation:fadeOutSparkle 1s forwards ease-out;


}

@keyframes fadeOutSparkle{
    0%{
        opacity:1;
        transform:translate(-50%, -50%) scale(1);

    }
    100%{
        opacity:0;
        transform:translate(-50%,-50%) translateY(20px) scale(0);
    }
}
h1:hover{
    text-shadow:
    0.05cm 0 0 rgba(255,0,0,0.75),
    -0.025cm -0.05cm 0 rgba(0, 0, 0, 0.75),
    0.025cm 0.05cm 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;

}

@keyframes glitch{
    0% { text-shadow: 0.05em 0 0 rgba(255,0,0,.75), -0.1em -0.05em 0 rgba(0,255,0,.75), 0.025em 0.05em 0 rgba(0,0,255,.75); 
    }}


    .about{
        padding:20px;
        max-width:800px;
        margin:0 auto;
    }
    
    .about-joke-box, .about-real-box{
        background: linear-gradient(135deg, rgba(228, 232, 19, 0.4), rgba(234, 100, 178, 0.4));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border:1px solid rgba(134, 204, 234, 0.2);
        border-radius: 16px;
        padding: 25px;
        margin-bottom: 25px;
        color: #ffffff;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    }
    .signature{
        font-weight: 700;
        color:#799fde;
        margin-top: 15px;
        border-radius: 90px;
        box-shadow: #0b0f19;
        border-top: #0b0f19;
    }
  