/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #00f2ea;
  --secondary-color: #7000ff;
  --bg-color: #050505;
  --card-bg: rgba(20, 20, 20, 0.4);
  --text-color: #ffffff;
  --text-muted: #a0a0a0;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 242, 234, 0.3);
  --gradient-1: linear-gradient(135deg, #00f2ea, #7000ff);
  --gradient-hover: linear-gradient(135deg, #7000ff, #00f2ea);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0.5) 0%, rgba(5, 5, 5, 1) 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 10s infinite ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary-color);
  bottom: -150px;
  right: -150px;
  animation-delay: 2s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #ff0055;
  top: 40%;
  left: 40%;
  animation-delay: 4s;
  opacity: 0.2;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, 50px);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 5, 0.5);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 1rem 5%;
  background: rgba(5, 5, 5, 0.85);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(0, 242, 234, 0.2);
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 120px 5% 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.hero-content {
  animation: slideInLeft 1s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 242, 234, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 50px;
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 500px;
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 242, 234, 0.4), 0 0 15px rgba(112, 0, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--glass-border);
  color: var(--text-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-color);
}

/* Chatbot Card */
.chatbot-card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: slideInRight 1s ease-out;
  height: 500px;
  display: flex;
  flex-direction: column;
}

.chatbot-header {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.chatbot-title i {
  color: var(--primary-color);
}

.btn-close {
  font-size: 0.6rem;
  opacity: 0.15;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
}

.chatbot-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 85%;
  padding: 1rem;
  border-radius: 15px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ai-message {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.user-message {
  background: var(--gradient-1);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  color: white;
}

.chatbot-input-area {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  color: white;
  outline: none;
}

.chatbot-input:focus {
  border-color: var(--primary-color);
}

.send-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: black;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.send-btn:hover {
  transform: scale(1.1);
}

/* Chatbot Hints */
.chatbot-input-area {
  position: relative;
}

.chatbot-hints-container {
  position: absolute;
  top: -3rem;
  left: 1rem;
  right: 1rem;
  height: auto;
  overflow: visible;
  pointer-events: none;
  /* prevent clicks interfering with user input */
}

.chatbot-hint {
  /* inherited placement from container */
  padding: 0.6rem 1rem;
  background: rgba(0, 242, 234, 0.08);
  border: 1px solid rgba(0, 242, 234, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-style: italic;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 0.5rem;
  animation: hintFadeInOut 0.6s ease-in-out;
  opacity: 0;
}

.chatbot-hint.active {
  animation: hintFadeInOut 4s ease-in-out;
  opacity: 0.6;
}

@keyframes hintFadeInOut {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }

  15% {
    opacity: 0.6;
    transform: translateY(0);
  }

  85% {
    opacity: 0.6;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-5px);
  }
}

/* Sections */
.section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* About Section */
.about-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-img-wrapper {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
}

.img-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 5px;
  background: var(--gradient-1);
  position: relative;
}

.img-frame::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: var(--gradient-1);
  opacity: 0.3;
  filter: blur(20px);
  z-index: -1;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-color);
}

.about-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 15px;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 242, 234, 0.2);
  background: rgba(30, 30, 30, 0.6);
}

.skill-card h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.skill-card h3 i {
  color: var(--primary-color);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #ccc;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(112, 0, 255, 0.3);
  border-color: var(--primary-color);
}

.project-img {
  height: 150px;
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-color);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.link-btn {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s;
}

.link-btn:hover {
  color: var(--primary-color);
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  margin-bottom: 3rem;
  padding-left: 50px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: var(--bg-color);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1;
}

.timeline-date {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(112, 0, 255, 0.2);
  color: var(--secondary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-content {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
}

.timeline-title {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.timeline-desc {
  color: var(--primary-color);
  font-weight: 500;
}

/* Publications */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.pub-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s;
}

.pub-card:hover {
  transform: translateY(-5px);
}

.pub-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  opacity: 0.8;
}

.pub-content {
  padding: 1.5rem;
}

/* Certifications Slider */
.cert-section {
  padding: 50px 5%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cert-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.cert-container::-webkit-scrollbar {
  display: none;
}

.cert-item {
  flex: 0 0 200px;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: transform 0.3s;
}

.cert-item:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.cert-thumb {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.slider-btn {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: var(--primary-color);
}

.slider-btn.left {
  left: 2%;
}

.slider-btn.right {
  right: 2%;
}

/* Contact */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: white;
  outline: none;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid var(--glass-border);
}

.social-link:hover {
  background: var(--gradient-1);
  transform: translateY(-5px);
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  margin-top: 3rem;
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Chatbot Modal */
.chatbot-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.chatbot-modal-content {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 242, 234, 0.2);
  border-radius: 20px;
  width: 95%;
  max-width: 980px;
  height: 75vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 242, 234, 0.15), 0 0 100px rgba(112, 0, 255, 0.1);
  animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal-btn:hover {
  color: white;
}

/* Floating Action Button */
.chat-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(112, 0, 255, 0.4);
  z-index: 1000;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 242, 234, 0.6);
}

/* Glow Button */
.btn-glow {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 242, 234, 0.2);
  transition: all 0.3s;
}

.btn-glow:hover {
  background: var(--gradient-1);
  box-shadow: 0 0 30px rgba(0, 242, 234, 0.6);
  transform: translateY(-3px);
  border-color: transparent;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 2rem;
  }

  .btn-group {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 10, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 3rem;
  }

  .about-content {
    gap: 2rem;
  }
}

.typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 20px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background-color: #00f2ea;
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.6;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Intro / Welcome message */
.intro-message {
  position: relative;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.15),
      rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-left: 4px solid #22c55e;
  padding: 14px 16px;
  border-radius: 12px;
  color: #e5e7eb;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.15);
  animation: introFade 0.6s ease;
}

/* Small badge */
.intro-badge {
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Smooth entrance */
@keyframes introFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}