@import url('../css/fontawesome.css');
@import url('../css/fonts.css');
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #004225;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}
body {
    font-family: "YekanBakhFa";
    background-color: #0a0a0a;
    color: #f3f4f6;
    overflow-x: hidden;
}
.bg-noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    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.03"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 50;
}
.book-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}
.book-3d {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
    box-shadow: -15px 15px 30px rgba(0,0,0,0.8), 0 0 40px rgba(0, 66, 37, 0.4);
    position: relative;
}
.book-3d::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 100%;
    background: linear-gradient(to right, #2a2a2a, #111);
    transform: rotateY(-90deg) translateZ(12.5px) translateX(-12.5px);
    transform-origin: left;
    border-radius: 3px 0 0 3px;
}
.book-3d::after {
    content: '';
    position: absolute;
    right: 0;
    top: 2%;
    width: 20px;
    height: 96%;
    background: #e0e0e0;
    transform: rotateY(90deg) translateZ(10px) translateX(10px);
    transform-origin: right;
    background-image: repeating-linear-gradient(to bottom, #fff 0px, #fff 2px, #ccc 2px, #ccc 3px);
}
.snooker-ball {
    position: absolute;
    border-radius: 50%;
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.6), 5px 5px 15px rgba(0,0,0,0.8);
    z-index: -1;
    transition: transform 0.2s ease-out;
}
.ball-red { background: radial-gradient(circle at 30% 30%, #ff4d4d, #C8102E); width: 60px; height: 60px; }
.ball-black { background: radial-gradient(circle at 30% 30%, #444, #000); width: 80px; height: 80px; }
.ball-blue { background: radial-gradient(circle at 30% 30%, #4da6ff, #005ce6); width: 50px; height: 50px; }
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 8s ease-in-out infinite 2s; }
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.glow-text {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}
.glow-border:hover {
    box-shadow: 0 0 25px rgba(0, 66, 37, 0.6);
    border-color: #004225;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}