/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top left, #0a0a0a, #1a1a1a);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    animation: fadeInBody 1.5s ease forwards;
}

/* Intro Section */
.intro {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 60px 50px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), 0 0 50px rgba(0, 255, 255, 0.2);
    transition: transform 0.5s ease;
}

.intro:hover {
    transform: scale(1.02);
}

/* Headings */
h1 {
    font-size: 3.5rem;
    color: #00f7ff;
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: glowText 2s ease infinite alternate;
}

h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 30px;
    animation: slideUp 2s ease forwards;
}

/* Highlight */
.highlight {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
}

/* Profile Photo */
.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 5px solid #00f7ff;
    box-shadow: 0 0 20px #00f7ff, 0 0 40px #00f7ff;
    margin: 25px 0;
    object-fit: cover;
    animation: floatPhoto 5s infinite ease-in-out;
}

/* Tagline */
.tagline {
    font-size: 1.4rem;
    color: #ccc;
    margin-top: 20px;
    font-style: italic;
    animation: fadeIn 3s ease forwards;
}

/* Floating Animation */
@keyframes floatPhoto {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Fade Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Text Glow */
@keyframes glowText {
    0% { text-shadow: 0 0 5px #00f7ff, 0 0 10px #00f7ff; }
    100% { text-shadow: 0 0 20px #00f7ff, 0 0 40px #00f7ff; }
}

/* Slide Up */
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Chatbot Floating Button */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chatbot-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f7ff, #ff00ff);
    padding: 3px;
    box-shadow: 0 0 15px #00f7ff, 0 0 25px #ff00ff;
    cursor: pointer;
    animation: pulseGlow 2s infinite alternate;
    transition: transform 0.3s ease;
}

.chatbot-icon:hover {
    transform: scale(1.1);
}

/* Pulse Animation */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px #00f7ff, 0 0 20px #ff00ff; }
    100% { box-shadow: 0 0 20px #00f7ff, 0 0 40px #ff00ff; }
}

/* Chatbox */
.chatbox {
    width: 320px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #00f7ff;
    border-radius: 15px;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    display: none;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 30px rgba(255, 0, 255, 0.3);
    animation: popIn 0.5s ease forwards;
}

/* Chatbox Header */
.chatbox-header {
    background: linear-gradient(135deg, #00f7ff, #ff00ff);
    color: #000;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
}

/* Chatbox Body */
.chatbox-body {
    height: 220px;
    background: #1f1f1f;
    padding: 12px;
    overflow-y: auto;
    color: #fff;
    font-size: 0.9rem;
}

.bot-message, .user-message {
    margin-bottom: 12px;
}

.bot-message {
    color: #00f7ff;
}

.user-message {
    text-align: right;
    color: #ff00ff;
}

/* Chatbox Footer */
.chatbox-footer {
    display: flex;
    background: #2c2c2c;
    padding: 12px;
    border-top: 1px solid #00f7ff;
}

.chatbox-footer input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    background: #1f1f1f;
    color: #fff;
    border-radius: 8px;
}

.chatbox-footer button {
    padding: 10px 14px;
    margin-left: 8px;
    background: linear-gradient(135deg, #00f7ff, #ff00ff);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chatbox-footer button:hover {
    background: linear-gradient(135deg, #00ccff, #ff33ff);
}

/* Pop In Animation */
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
