/* Heaven's Gate Modern Theme with Animations */

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

body {
    background: linear-gradient(135deg, #000000 0%, #1a0033 25%, #000033 50%, #1a0033 75%, #000000 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    color: #33ffcc;
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Background Stars */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #66ffff, transparent),
        radial-gradient(2px 2px at 40px 70px, #ff66ff, transparent),
        radial-gradient(1px 1px at 90px 40px, #ffff66, transparent),
        radial-gradient(1px 1px at 130px 80px, #66ff66, transparent),
        radial-gradient(2px 2px at 160px 30px, #ff6666, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #ff0099;
    text-shadow: 0 0 10px #ff0099, 0 0 20px #ff0099, 0 0 30px #ff0099;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #ff0099, 0 0 20px #ff0099, 0 0 30px #ff0099; }
    to { text-shadow: 0 0 20px #ff0099, 0 0 30px #ff0099, 0 0 40px #ff0099; }
}

/* Links */
a {
    color: #66ccff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #ffff66;
    text-shadow: 0 0 10px #ffff66;
    transform: scale(1.05);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #66ccff, #ffff66);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Buttons and Images */
img {
    transition: all 0.3s ease;
    border-radius: 5px;
}

img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 20px rgba(102, 204, 255, 0.5);
}

/* Tables */
table {
    border-collapse: collapse;
    margin: 20px auto;
    background: rgba(0, 0, 51, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 0, 153, 0.3);
    animation: tableFloat 6s ease-in-out infinite;
}

@keyframes tableFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

td {
    padding: 15px;
    border: 1px solid rgba(102, 204, 255, 0.3);
    transition: all 0.3s ease;
}

td:hover {
    background: rgba(102, 204, 255, 0.1);
    transform: scale(1.02);
}

/* Announcement Box */
.announcement-box {
    background: linear-gradient(135deg, #000066 0%, #330066 50%, #000066 100%);
    border: 2px solid #66ff66;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 
        0 0 30px rgba(102, 255, 102, 0.5),
        inset 0 0 30px rgba(102, 255, 102, 0.1);
    animation: pulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.announcement-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 255, 102, 0.1), transparent);
    animation: shimmer 3s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Contract Address */
.contract-address {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #66ff66;
    color: #66ff66;
    text-shadow: 0 0 10px #66ff66;
    animation: typewriter 2s steps(40) 1s 1 normal both;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide In Animation */
.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Bounce Animation */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Rotate Animation */
.rotate {
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pulsing Glow */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 20px rgba(255, 0, 153, 0.5); }
    to { box-shadow: 0 0 40px rgba(255, 0, 153, 0.8), 0 0 60px rgba(255, 0, 153, 0.6); }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    table {
        width: 95%;
        margin: 10px auto;
    }
    
    .announcement-box {
        margin: 10px;
        padding: 15px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000033;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #66ccff, #ff66ff);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ffff66, #66ff66);
}
