/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000428, #004e92);
    color: white;
    margin: 0;
    padding: 0;
    text-align: center;
    overflow-x: hidden;
}

/* Smooth Scroll Effect */
html {
    scroll-behavior: smooth;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    animation: fadeIn 2s ease-in-out;
}

/* Glowing Text */
.glow-text {
    font-size: 36px;
    color: cyan;
    text-shadow: 0 0 10px cyan, 0 0 20px cyan, 0 0 30px cyan;
    animation: glow 1.5s infinite alternate;
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid cyan;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: cyan;
    transform: scale(1.1);
}

/* Glowing Underline on Hover */
nav ul li a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: cyan;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

/* Sections */
section {
    margin: 60px auto;
    padding: 30px;
    width: 85%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(50px);
}

/* Fade-in Animation */
section.appear {
    opacity: 1;
    transform: translateY(0);
}

section:hover {
    transform: scale(1.05);
}

/* 🛠️ Fixed Image Sizes */
img {
    width: 100%;
    max-width: 450px; /* Ensures images are not too large */
    max-height: 300px; /* Limits the height for oversized images */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* AI Chatbot */
#chatbot-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
}

/* Chatbot Button */
#chatbot-btn {
    background: cyan;
    color: black;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
}

#chatbot-btn:hover {
    transform: scale(1.1);
}

/* Chatbot Box */
#chatbot-box {
    position: fixed;
    bottom: 70px;
    right: 15px;
    width: 280px;
    background: rgba(0, 0, 0, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px cyan;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
}

/* Chatbot Box - Show on Click */
#chatbot-box.show {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

/* Chatbot Input */
#user-input {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    border: 1px solid cyan;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

#send-btn {
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    background: cyan;
    border: none;
    border-radius: 5px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

#send-btn:hover {
    background: white;
}

/* Chatbot Messages */
#chat-response {
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
    text-align: left;
}

#chat-response p {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 5px;
    margin: 5px 0;
}

/* Floating Particles Effect */
@keyframes floatParticles {
    0% { transform: translateY(0px); opacity: 0.7; }
    50% { transform: translateY(-10px); opacity: 1; }
    100% { transform: translateY(0px); opacity: 0.7; }
}

/* Background Floating Elements */
.floating-particles {
    position: absolute;
    width: 8px;
    height: 8px;
    background: cyan;
    border-radius: 50%;
    opacity: 0.7;
    animation: floatParticles 3s infinite alternate ease-in-out;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
    text-shadow: 0 0 5px cyan;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes glow {
    from { text-shadow: 0 0 10px cyan; }
    to { text-shadow: 0 0 30px cyan; }
}

@keyframes pulse {
    from { box-shadow: 0 0 10px cyan; }
    to { box-shadow: 0 0 20px cyan; }
}
