* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 7%;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  color: white;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: #93c5fd;
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
  padding: 70px 7%;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #111827 48%, #1e293b 100%);
  color: white;
}

.status-badge {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -2.4px;
}

.hero-subtitle {
  max-width: 720px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: 21px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-link,
.secondary-link {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}

.primary-link {
  background: #3b82f6;
  color: white;
  box-shadow: 0 16px 30px rgba(59, 130, 246, 0.28);
}

.secondary-link {
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.28);
}

.hero-card {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.hero-card h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.hero-card p {
  color: #cbd5e1;
  line-height: 1.75;
  font-size: 16px;
}

.architecture-flow {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.architecture-flow span {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(147, 197, 253, 0.22);
  font-weight: 800;
  color: #dbeafe;
}

.section {
  padding: 80px 7%;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.section h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -1.1px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-card,
.tech-stack-card,
.chat-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.skill-card {
  padding: 26px;
}

.skill-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.skill-card p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.project-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
  background: #eef4ff;
}

.project-content p {
  max-width: 760px;
  color: #475569;
  font-size: 18px;
  line-height: 1.75;
}

.project-list {
  margin: 22px 0 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}

.tech-stack-card {
  padding: 28px;
}

.tech-stack-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.stack-item {
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  font-weight: 800;
  color: #1e3a8a;
}

.assistant-section {
  background: #f8fafc;
}

.assistant-container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.assistant-info p {
  color: #475569;
  font-size: 18px;
  line-height: 1.75;
}

.chat-card {
  padding: 28px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 900;
}

textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.quick-question {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.quick-question:hover {
  background: #dbeafe;
}

.ask-button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: #2563eb;
  color: white;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
}

.ask-button:hover {
  background: #1d4ed8;
}

.ask-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.loading {
  margin-top: 14px;
  color: #2563eb;
  font-weight: 900;
}

.hidden {
  display: none;
}

.answer-box {
  margin-top: 22px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
}

.answer-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 10px;
}

#answerText {
  margin: 0;
  color: #334155;
  line-height: 1.8;
  white-space: pre-wrap;
}

.footer {
  padding: 26px 7%;
  text-align: center;
  background: #0f172a;
  color: #cbd5e1;
}

.footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .hero,
  .project-section,
  .assistant-container {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 52px;
  }
}

@media (max-width: 640px) {
  .navbar {
    display: block;
  }

  .nav-links {
    flex-wrap: wrap;
    margin-top: 12px;
    gap: 12px;
  }

  .hero {
    padding: 52px 6%;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section {
    padding: 58px 6%;
  }

  .section h2 {
    font-size: 32px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}