* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #1f2933;
  background: #f8fafc;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus,
button:focus,
input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

*:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  z-index: 10;
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #2563eb;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #1f2933;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: #1f2933;
  color: #ffffff;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}

.eyebrow {
  font-size: 0.9rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 12px 0;
}

.hero-subtitle {
  max-width: 520px;
  color: #475569;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.button.primary {
  background: #1f2933;
  color: #ffffff;
}

.button.primary:hover {
  background: #0f1419;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.button.secondary {
  background: #ffffff;
  border-color: #cbd5f5;
}

.button.secondary:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.quick-links {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
  color: #2563eb;
}

.quick-links a {
  transition: all 0.2s ease;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.quick-links a:hover {
  color: #1d4ed8;
  text-decoration-color: currentColor;
}

.hero-image img {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.section {
  padding: 32px 0;
  border-bottom: 1px solid #e2e8f0;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  color: #1f2933;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.timeline-item:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.timeline-item h3 {
  margin-bottom: 8px;
}

.timeline-item ul {
  margin-left: 18px;
  color: #475569;
}

.meta {
  font-size: 0.9rem;
  color: #64748b;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 8px;
}

.card a {
  color: #2563eb;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.card a:hover {
  color: #1d4ed8;
}

.stack {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #475569;
}

.skills-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.skills-grid h3 {
  margin-bottom: 6px;
}

.muted {
  color: #64748b;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.section p {
  line-height: 1.7;
}

.section ul li {
  margin-bottom: 8px;
}

.contact {
  border-bottom: none;
}

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.contact-grid a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.contact-grid a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.contact-grid p {
  font-weight: 600;
  margin-bottom: 4px;
  color: #475569;
}

.footer {
  text-align: center;
  padding: 32px 24px;
  color: #64748b;
  font-size: 0.9rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  margin-top: 48px;
}

.chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
}

.chatbot-toggle {
  background: #1f2933;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-weight: 600;
}

.chatbot-toggle:hover {
  background: #0f1419;
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.3);
}

.chatbot-toggle img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
}

.chatbot-panel {
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  display: none;
  flex-direction: column;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.chatbot-panel.open {
  display: flex;
}

.chatbot-header {
  background: #1f2933;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-title img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
}

.chatbot-header button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-messages {
  padding: 12px 16px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.message-row.user {
  justify-content: flex-end;
}

.message-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.bot-message,
.user-message {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.bot-message {
  background: #f1f5f9;
  max-width: 85%;
  word-wrap: break-word;
}

.bot-message a {
  color: #2563eb;
  text-decoration: underline;
}

.bot-message a:hover {
  color: #1d4ed8;
}

.user-message {
  background: #1f2933;
  color: #ffffff;
  max-width: 85%;
  word-wrap: break-word;
}

.chatbot-form {
  display: flex;
  border-top: 1px solid #e2e8f0;
}

.chatbot-form input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  outline: none;
}

.chatbot-form button {
  background: #1f2933;
  color: #ffffff;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-weight: 600;
}

.chatbot-form button:hover {
  background: #0f1419;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .chatbot {
    right: 12px;
    bottom: 12px;
  }

  .chatbot-panel {
    width: calc(100vw - 24px);
    max-width: 320px;
  }

  .hero {
    gap: 24px;
  }

  .quick-links {
    flex-wrap: wrap;
  }
}
