@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&family=Courier+Prime:wght@400;700&display=swap');

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

body {
    background: #000080;
    background-image: 
        radial-gradient(white 1px, transparent 1px),
        radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    color: #00FF00;
    font-family: 'Courier Prime', monospace;
    padding: 20px;
    min-height: 100vh;
    animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.8);
    border: 5px ridge #FFD700;
    padding: 20px;
    box-shadow: 0 0 20px #00FF00;
}

.header {
    text-align: center;
    border-bottom: 3px dashed #00FFFF;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Comic Neue', cursive;
    color: #FFD700;
    font-size: 3em;
    text-shadow: 3px 3px #FF00FF, -2px -2px #00FFFF;
    animation: rainbow 3s linear infinite;
    margin-bottom: 10px;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

.marquee {
    background: #FF00FF;
    color: #FFFF00;
    padding: 10px;
    margin: 20px 0;
    overflow: hidden;
    border: 2px solid #00FFFF;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 16.5s linear infinite;
    white-space: nowrap;
    font-weight: bold;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.section {
    margin: 30px 0;
    padding: 20px;
    border: 3px groove #00FFFF;
    background: rgba(0, 50, 100, 0.5);
}

h2 {
    color: #00FFFF;
    font-family: 'Comic Neue', cursive;
    text-decoration: underline;
    margin-bottom: 15px;
    font-size: 2em;
}

.cloud-badges {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 20px;
}

.badge {
    background: linear-gradient(45deg, #FF00FF, #00FFFF);
    padding: 15px 25px;
    border: 3px outset #FFD700;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    color: #000;
    transition: transform 0.3s;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.badge:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.8);
}

.cert-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    border: 4px double #FF0000;
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
    text-shadow: 1px 1px #FFF;
    transform: rotate(-3deg);
    box-shadow: 5px 5px 0px #000;
}

.container-animation {
    text-align: center;
    margin: 20px 0;
    font-size: 3em;
    animation: float 3s ease-in-out infinite;
}

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

.visitor-counter {
    background: #000;
    color: #00FF00;
    padding: 10px;
    display: inline-block;
    border: 2px solid #00FF00;
    font-family: 'Courier Prime', monospace;
    margin-top: 20px;
}

.under-construction {
    text-align: center;
    margin: 20px 0;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px dashed #00FFFF;
    color: #FFD700;
    font-size: 0.9em;
}

a {
    color: #00FFFF;
    text-decoration: none;
    text-shadow: 0 0 5px #00FFFF;
}

a:hover {
    color: #FF00FF;
    text-decoration: underline;
}

.gif-container {
    display: inline-block;
    margin: 0 10px;
}

ul {
    list-style: none;
    padding-left: 20px;
}

li:before {
    content: "☁️ ";
}

li {
    margin: 10px 0;
    color: #00FF00;
}

/* CHAT BUTTON */
.chat-open-btn {
    background: linear-gradient(45deg, #FF00FF, #FF69B4);
    color: #FFFF00;
    font-family: 'Comic Neue', cursive;
    font-size: 1.5em;
    font-weight: bold;
    padding: 20px 40px;
    border: 5px outset #FFD700;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.7);
    transition: all 0.3s;
    text-shadow: 2px 2px #000;
}

.chat-open-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 255, 1);
    background: linear-gradient(45deg, #FF69B4, #FF00FF);
}

.chat-open-btn:active {
    transform: scale(0.95);
    border-style: inset;
}

/* CHAT MODAL */
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.chat-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chat-window {
    width: 90%;
    max-width: 700px;
    height: 80%;
    max-height: 600px;
    background: #C0C0C0;
    border: 3px outset #FFFFFF;
    box-shadow: 
        0 0 0 2px #000000,
        8px 8px 0 0 rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: windowOpen 0.3s;
}

@keyframes windowOpen {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-titlebar {
    background: linear-gradient(180deg, #0000AA, #0000CC);
    color: #FFFFFF;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000000;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
}

.chat-title {
    font-size: 1.1em;
}

.chat-close-btn {
    background: #C0C0C0;
    border: 2px outset #FFFFFF;
    color: #000000;
    font-size: 1em;
    width: 30px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.1s;
}

.chat-close-btn:hover {
    background: #FF0000;
    color: #FFFFFF;
}

.chat-close-btn:active {
    border-style: inset;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #FFFFFF;
    font-family: 'Courier Prime', monospace;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border: 2px solid #000000;
    background: #F0F0F0;
    border-radius: 5px;
    animation: messageSlide 0.3s;
}

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

.ai-message {
    background: linear-gradient(135deg, #E0FFE0, #C0FFC0);
    border-color: #00AA00;
}

.user-message {
    background: linear-gradient(135deg, #E0E0FF, #C0C0FF);
    border-color: #0000AA;
    margin-left: 50px;
}

.message-header {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.ai-message .message-header {
    color: #00AA00;
}

.user-message .message-header {
    color: #0000AA;
}

.message-content {
    color: #000000;
    line-height: 1.4;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    background: #C0C0C0;
    border-top: 2px inset #808080;
    gap: 5px;
}

.chat-input {
    flex: 1;
    padding: 8px;
    border: 2px inset #808080;
    font-family: 'Courier Prime', monospace;
    font-size: 1em;
    background: #FFFFFF;
}

.chat-input:focus {
    outline: none;
    border-color: #0000AA;
}

.chat-send-btn {
    background: #C0C0C0;
    border: 2px outset #FFFFFF;
    padding: 8px 20px;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
}

.chat-send-btn:hover {
    background: #00AA00;
    color: #FFFFFF;
}

.chat-send-btn:active {
    border-style: inset;
}

.chat-send-btn:disabled {
    background: #808080;
    color: #C0C0C0;
    cursor: not-allowed;
}

.chat-status {
    padding: 5px 10px;
    background: #C0C0C0;
    border-top: 1px solid #808080;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85em;
    color: #000000;
    min-height: 25px;
}

.typing-indicator {
    display: inline-block;
    animation: blinker 1s linear infinite;
}

/* Scrollbar styling for chat */
.chat-messages::-webkit-scrollbar {
    width: 16px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #C0C0C0;
    border: 1px solid #808080;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #808080;
    border: 2px outset #C0C0C0;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chat-window {
        width: 95%;
        height: 90%;
    }
    
    .chat-open-btn {
        font-size: 1.2em;
        padding: 15px 30px;
    }
    
    .user-message {
        margin-left: 20px;
    }
}
