/* General Styling */
body {
    margin: 0;
    overflow: hidden; /* Hide scrollbars for the particle effect */
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl; /* Right-to-left for Persian text */
    background-color: #000a1a; /* Very dark blue for base background */
    color: #e0f2f7; /* Light blue/white text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    user-select: none; /* Prevent text selection */
}

/* Particles Canvas - Full screen background */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Make sure it's behind the content */
    background: radial-gradient(circle at center, #ff0000 0%, #000000 100%); /* Blue gradient */
}

/* Neon Text Container - Top Left */
.neon-text-container {
    position: absolute;
    top: 30px; /* Distance from top */
    left: 30px; /* Distance from left */
    z-index: 3; /* Above content and particles */
    /* pointer-events: none; /* حذف این ویژگی برای فعال شدن کلیک روی لینک */
}

.neon-glow {
    font-family: 'Vazirmatn', sans-serif; /* Or a more decorative font if you prefer */
    font-size: 2.5em;
    color: #fff; /* White base color */
    text-shadow: 0 0 7px #fff,
                 0 0 10px #fff,
                 0 0 21px #fff,
                 0 0 42px #ffdd00, /* Changed to a bright yellow/gold for neon glow */
                 0 0 82px #ffdd00,
                 0 0 92px #ffdd00,
                 0 0 102px #ffdd00,
                 0 0 151px #ffdd00;
    animation: neonFlicker 1.5s infinite alternate, pulseText 3s infinite ease-in-out;
}

/* اضافه شدن استایل برای لینک لوگو*/
.pyber-logo-link {
    text-decoration: none; /* حذف زیر خط لینک*/
    color: inherit; /* حفظ رنگ اصلی متن (نئونی)*/
}
/* Keyframes for neon flicker effect */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 7px #fff,
                     0 0 10px #fff,
                     0 0 21px #fff,
                     0 0 42px #ffdd00,
                     0 0 82px #ffdd00,
                     0 0 92px #ffdd00,
                     0 0 102px #ffdd00,
                     0 0 151px #ffdd00;
        color: #fff;
    }
    20%, 24%, 55% {
        text-shadow: none;
        color: #888; /* Dimmed color during flicker */
    }
}

/* Optional: Slight pulsing for the text */
@keyframes pulseText {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.95; }
    100% { transform: scale(1); opacity: 1; }
}


/* Content Wrapper - To center the text and button */
.content-wrapper {
    position: relative;
    z-index: 2; /* Ensure content is above particles */
    text-align: center;
    padding: 20px;
    max-width: 900px; /* Limit content width */
    width: 100%;
    box-sizing: border-box;
    display: flex; /* Use flexbox to center content vertically */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px); /* Adjust based on neon-text-container top/bottom */
}

/* Main Heading */
.main-heading {
    font-size: 3em; /* Larger font size */
    color: #eeff00; /* Bright light blue (cyan-like) */
    margin-bottom: 40px;
    text-shadow: 0 0 15px rgba(2, 255, 23, 0.7), 0 0 25px rgba(139, 233, 253, 0.5); /* Neon glow effect */
    animation: fadeInDown 1.5s ease-out forwards; /* Simple fade-in animation */
    padding: 0 15px; /* Add some padding for smaller screens */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Button Styles */
.animated-button {
    display: inline-flex; /* Allows icon and text to sit side-by-side */
    align-items: center; /* Vertically align content */
    justify-content: center; /* Horizontally align content */
    padding: 15px 40px;
    margin-bottom: 40px; /* Space below the button */
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    color: #fff; /* White text */
    background: linear-gradient(45deg, #d9ff00, #ff0000); /* Blue gradient */
    border: 2px solid #eeff00; /* Light blue border */
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease-in-out; /* Smooth transitions for hover effects */
    z-index: 2; /* Ensure button is above particles */
    box-shadow: 0 0 15px rgba(238, 255, 0, 0.5), 0 0 30px rgba(238, 255, 0, 0.5); /* Initial glow */
    animation: zoomIn 1.5s ease-out forwards 0.5s; /* Fade in and zoom */
    opacity: 0; /* Start hidden for animation */
}

.animated-button .button-text {
    margin-right: 10px; /* Space between text and icon */
}

.animated-button .button-icon {
    font-size: 1em; /* Adjust icon size relative to text */
    transition: transform 0.3s ease-in-out;
}

/* Hover effect for the button */
.animated-button:hover {
    background: linear-gradient(45deg, #020202, #ff0000); /* Invert gradient on hover */
    box-shadow: 0 0 25px rgba(255, 255, 0, 0.9), 0 0 50px rgba(255, 255, 0, 0.7); /* Yellow/gold glow on hover */
    transform: scale(1.05); /* Slightly enlarge the button */
    border-color: #ffdd00; /* Yellow border on hover */
}

.animated-button:hover .button-icon {
    transform: rotate(360deg); /* Spin the icon on hover */
}

/* Keyframes for zoomIn animation (reused for button) */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Tagline */
.tagline {
    font-size: 1.5em;
    color: #eeff00; /* Lighter blue */
    text-shadow: 0 0 15px rgba(2, 255, 23, 0.7), 0 0 25px rgba(139, 233, 253, 0.5);
    animation: fadeInUp 1.5s ease-out forwards 1s; /* Delay animation */
    opacity: 0; /* Start hidden for animation */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .neon-text-container {
        top: 20px;
        left: 20px;
    }
    .neon-glow {
        font-size: 2em;
    }
    .main-heading {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    .animated-button {
        padding: 12px 30px;
        font-size: 1.5em;
        margin-bottom: 30px;
    }
    .tagline {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .neon-text-container {
        top: 15px;
        left: 15px;
    }
    .neon-glow {
        font-size: 1.5em;
    }
    .main-heading {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .animated-button {
        padding: 10px 25px;
        font-size: 1.2em;
        margin-bottom: 20px;
    }
    .tagline {
        font-size: 1em;
    }
}