@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
body {
  font-family: "Poppins", sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  scroll-behavior: smooth;
}
#mobile-menu-panel {
  transform: translateX(100%);
}
#mobile-menu-panel.open {
  transform: translateX(0);
}
.dark body {
  background-color: #0f172a;
  color: #cbd5e1;
}
.dark #home {
  background-color: #111827;
}
.gradient-text {
  background: linear-gradient(90deg, #64748b 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dark .gradient-text {
  background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 100%);
}
.skill-bar {
  height: 8px;
  border-radius: 4px;
  background-color: #e2e8f0;
  overflow: hidden;
}
.dark .skill-bar {
  background-color: #334155;
}
.dark .skill-bar + div span {
  color: #cbd5e1;
}
.skill-progress {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #64748b 0%, #94a3b8 100%);
  transition: width 1s ease-in-out;
}
.dark .skill-progress {
  background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 100%);
}
.floating {
  animation: floating 6s ease-in-out infinite;
}
@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}
.chat-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #334155;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 100;
  transition: all 0.3s ease;
}
.dark .chat-bubble {
  background-color: #4f46e5;
}
.chat-bubble:hover {
  transform: scale(1.1);
}
.chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 300px;
  height: 400px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.dark .chat-window {
  background-color: #1e293b;
  border: 1px solid #334155;
}
.chat-window.active {
  transform: scale(1);
}
.dark .chat-header {
  background-color: #4f46e5;
}
.chat-header {
  background-color: #334155;
  color: white;
  padding: 15px;
  font-weight: 600;
}
.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: #f8fafc;
}
.dark .chat-messages {
  background-color: #0f172a;
}
.chat-input {
  display: flex;
  padding: 10px;
  background-color: white;
  border-top: 1px solid #e2e8f0;
}
.dark .chat-input {
  background-color: #1e293b;
  border-top-color: #334155;
}
.chat-input input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  outline: none;
}
.dark .chat-input input {
  background-color: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}
.dark .chat-input input::placeholder {
  color: #9ca3af;
}
.chat-input button {
  margin-left: 10px;
  background-color: #334155;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  cursor: pointer;
}
.dark .chat-input button {
  background-color: #4f46e5;
}
.dark .chat-input button:hover {
  background-color: #4338ca;
}
.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
}
.ai-message {
  background-color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.dark .ai-message {
  background-color: #374151;
  color: #e5e7eb;
}
.user-message {
  background-color: #334155;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}
.dark .user-message {
  background-color: #4f46e5;
  color: white;
}
#canvas3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.2;
}
.section {
  min-height: 100vh;
  padding: 80px 0;
}
.dark .section {
  background-color: #0f172a;
}
.card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dark .card {
  background-color: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2),
    0 2px 4px -1px rgba(0, 0, 0, 0.12);
}
.dark .card h2,
.dark .card h3,
.dark .card h4 {
  color: #e2e8f0;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.dark nav {
  background-color: #1e293b !important;
  background-color: rgba(30, 41, 59, 0.9) !important;
  box-shadow: 0 1px 2px 0 rgba(255, 255, 255, 0.05);
}
.nav-link {
  position: relative;
}
.dark .nav-link {
  color: #cbd5e1;
}
.dark .nav-link:hover {
  color: #f8fafc;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #64748b;
  transition: width 0.3s ease;
}
.dark .nav-link::after {
  background-color: #94a3b8;
}
.nav-link:hover::after {
  width: 100%;
}
.dark .gradient-text {
  background: linear-gradient(90deg, #94a3b8 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dark #theme-toggle {
  color: #cbd5e1;
}
.dark #theme-toggle:hover {
  background-color: #334155;
}
.dark .text-slate-600 {
  color: #94a3b8 !important;
}
.dark .text-slate-800 {
  color: #94a3b8 !important;
}
.dark .bg-slate-800 {
  background-color: #334155 !important;
  color: #e2e8f0 !important;
}
.dark .bg-slate-800:hover {
  background-color: #000000 !important;
}
.dark .border-slate-300 {
  border-color: #475569 !important;
  color: #cbd5e1 !important;
}
.dark .border-slate-300:hover {
  background-color: #1e293b !important;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.social-icon {
  color: #000000;
}
.social-icon:hover {
  background-color: #878889;
  color: white;
  transform: translateY(-3px);
}
.loading-message span {
  animation: blink 1.4s infinite both;
  display: inline-block;
}
.loading-message span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-message span:nth-child(3) {
  animation-delay: 0.4s;
}
.dark input[type="text"],
.dark input[type="email"],
.dark textarea {
  background-color: #334155;
  color: #e2e8f0;
  border-color: #475569;
}
.dark input[type="text"]:focus,
.dark input[type="email"]:focus,
.dark textarea:focus {
  border-color: #64748b;
}
.dark label {
  color: #cbd5e1;
}
#chatMessages {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#chatMessages::-webkit-scrollbar {
  display: none;
}
@keyframes blink {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .chat-window {
    width: 280px;
    height: 350px;
    right: 20px;
    bottom: 80px;
  }
}

