/* --- Variables & Reset --- */
:root {
    --bg-dark: #0a0f1c;        /* Very dark blue background */
    --bg-card: #111a2e;        /* Slightly lighter for cards */
    --primary: #00f2ff;        /* Electric Cyan */
    --primary-dim: rgba(0, 242, 255, 0.1);
    --secondary: #1a73e8;      /* Deep Blue */
    --text-main: #e0f7fa;      /* White/Light Cyan */
    --text-muted: #8892b0;     /* Grey-blue */
    --gradient: linear-gradient(90deg, var(--primary), var(--secondary));
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.dot { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }

.btn-contact {
    border: 1px solid var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    color: var(--primary) !important;
}

.btn-contact:hover {
    background: var(--primary-dim);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

/* Background glow effect */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
}

.hero-content h3 {
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    height: 30px; /* Fix height for typewriter */
}

/* Buttons */
.cta-buttons { display: flex; gap: 1rem; }

.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn.primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px var(--primary-dim);
}

.btn.primary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.btn.secondary {
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.btn.secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* --- Sections General --- */
.section {
    padding: 5rem 10%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

/* --- About & Skills --- */
.about-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 242, 255, 0.05);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    background: rgba(0, 242, 255, 0.05);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-dim);
}

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

.card-content h3 { margin-bottom: 0.5rem; color: var(--text-main); }
.card-content p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

.card-links a {
    margin-right: 1rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.card-links a:hover { text-decoration: underline; }

/* --- Contact & Footer --- */
.contact-section { text-align: center; }
.contact-sub {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.big-btn {
    display: inline-block;
    font-size: 1.2rem;
    padding: 1rem 3rem;
}

.footer {
    margin-top: 5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Animation Classes (JS) --- */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Chatbot Floating Button --- */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
    z-index: 2000;
    transition: var(--transition);
}
.chat-toggle:hover {
    transform: scale(1.1);
}

/* --- Chatbot Window --- */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-closed {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

/* Chat Header */
.chat-header {
    background: rgba(10, 15, 28, 0.8);
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.chat-header h3 { font-size: 1rem; color: var(--primary); }
#chat-close { cursor: pointer; color: var(--text-muted); font-size: 1.2rem; }
#chat-close:hover { color: var(--text-main); }

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    max-width: 80%;
    font-size: 0.85rem;
    word-wrap: break-word;
}
.bot-message {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.user-message {
    background: var(--secondary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Chat Input Area */
.chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    display: flex;
    gap: 0.5rem;
}
#chat-input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--text-main);
    outline: none;
}
#chat-input:focus { border-color: var(--primary); }
#chat-send {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Simplified for demo */
    .hero-content h1 { font-size: 2.5rem; }
    .hero { padding: 0 5%; }
    .section { padding: 4rem 5%; }
}
