/* =========================
   Global Reset & Base
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Courier New", Courier, monospace;
    color: #ffffff;
    background-color: #08090d;
    overflow-x: hidden;
}

/* --- Background Visuals --- */
.bg-visuals {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: move 20s infinite alternate ease-in-out;
}

.blob-1 { 
    top: -10%; left: -10%; 
    background: radial-gradient(circle, rgba(0, 210, 255, 0.3) 0%, transparent 70%); 
}
.blob-2 { 
    bottom: -10%; right: -10%; 
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 70%); 
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.1); }
}

/* --- Main Layout --- */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    z-index: 1;
}

.tech-border {
    padding: 60px 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 90%;
}

h1 {
    font-size: clamp(2.2rem, 8vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
}

.subtitle {
    margin: 15px 0;
    font-size: 1rem;
    color: #00d2ff;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.digital-clock {
    font-weight: bold;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.project-btn {
    display: inline-block;
    padding: 16px 38px;
    text-decoration: none;
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 50px;
    transition: 0.3s;
}

/* --- Footer --- */
footer {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.social-hub {
    display: flex;
    gap: 25px;
}

.social-hub a {
    font-size: 1.6rem;
    color: rgba(0, 210, 255, 0.5);
    transition: 0.4s;
}

/* =========================
   AI Chat UI
========================= */

.chat-launcher {
    position: fixed;
    bottom: 120px; 
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 210, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 210, 255, 0.4);
    color: #00d2ff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.chat-launcher::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid #00d2ff;
    animation: pulse 2s infinite;
    opacity: 0;
}

.chat-tooltip {
    position: absolute;
    bottom: 75px; 
    right: 0;
    background: rgba(8, 9, 13, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
}

.chat-tooltip.typing::after {
    content: '_';
    color: #00d2ff;
    animation: blinkCursor 0.8s infinite;
}

.chat-container {
    position: fixed;
    bottom: 190px; 
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
}

.chat-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #00d2ff;
}

.chat-header button { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.2rem; }
.chat-body { flex: 1; background: transparent; }
.chat-body iframe { width: 100%; height: 100%; border: none; }

/* Custom Scrollbar */
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.chat-body::-webkit-scrollbar-thumb { background: #00d2ff; border-radius: 10px; }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes blinkCursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes slideIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

@media (max-width: 480px) {
    .chat-container { width: 90vw; right: 5vw; height: 60vh; bottom: 190px; }
}
