/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f6f8fa;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
header {
  width: 100%;
  background: linear-gradient(90deg, #0078d7 0%, #005bb5 100%);
  color: #fff;
  padding: 2.5rem 0 2rem 0;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Banner (if used) */
.banner {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  background: #e9ecef;
}
.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Main content */
main {
  width: 100%;
  max-width: 600px;
  margin: 2.5rem auto 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
}

/* About Me Section */
.about-me {
  margin-bottom: 2rem;
}
.about-me img {
  display: block;
  margin: 0 auto 2rem auto;
  max-width: 240px;   /* Larger size */
  width: 40vw;
  min-width: 120px;
  height: 240px;      /* Make height equal to width for square */
  object-fit: cover;  /* Ensures the image fills the square */
  border-radius: 12px; /* Slightly rounded corners for a modern look */
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  border: 4px solid #fff;
  background: #f4f4f4;
}
.about-me h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #0078d7;
}
.about-me p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #444;
}

.how-it-works {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 700px;
  text-align: center;
}

.how-it-works h2 {
  color: #4a6cf7;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.how-it-works h3 {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}
.how-it-works img {
  max-width: 90%;
  width: 36vw;
  min-width: 100px;
  height: auto;
  margin: 1.5rem auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.how-it-works p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.2rem;
}

/* Chat Widget */
.chat-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 340px;
  max-width: 90vw;
  max-height: 500px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  font-size: 1rem;
}

.chat-header {
  background: linear-gradient(90deg, #0078d7 0%, #005bb5 100%);
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: #f7fafd;
  display: none; /* Initially hidden */
}

.chat-input {
  display: flex;
  border-top: 1px solid #e0e0e0;
  display: none; /* Initially hidden */
  background: #f7fafd;
}
.chat-input input {
  flex: 1;
  padding: 1rem;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
}
.chat-input button {
  background: #0078d7;
  color: #fff;
  border: none;
  padding: 0 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 0 0 0 0;
  transition: background 0.2s;
}
.chat-input button:hover {
  background: #005bb5;
}

/* Chat message bubbles */
.message {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  max-width: 80%;
  word-break: break-word;
  display: inline-block;
}
.message.bot {
  background: #e9f3fb;
  color: #222;
  text-align: left;
  align-self: flex-start;
}
.message.user {
  background: #0078d7;
  color: #fff;
  text-align: right;
  align-self: flex-end;
  margin-left: auto;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  main {
    padding: 1.2rem 0.5rem;
  }
  .chat-container {
    right: 8px;
    bottom: 8px;
    width: 98vw;
    max-width: 98vw;
  }
}

.resume-request {
  max-width: 600px;
  margin: 2.5rem auto 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
}

.resume-request h2 {
  color: #0078d7;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

#resume-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

#resume-form label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #444;
  font-size: 1.1rem;
}

#resume-email {
  padding: 0.5rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  max-width: 320px;
  background: #f7fafd;
}

#resume-form button {
  padding: 0.5rem 1.5rem;
  background: #0078d7;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

#resume-form button:hover {
  background: #005bb5;
}

#resume-form-message {
  margin-top: 1rem;
  font-size: 1rem;
  min-height: 1.2em;
  color: #0078d7;
}

.infrastructure-evolution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.version-container {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.version-container h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #4a6cf7;
}

.version-container p {
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
  color: #666;
}

.arrow-container {
  flex: 0 0 auto;
  text-align: center;
  margin: 0 1rem;
}

.evolution-arrow {
  font-size: 2rem;
  color: #4a6cf7;
  font-weight: bold;
}

.migration-text {
  font-size: 0.8rem;
  color: #666;
  margin: 0.5rem 0 0 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .infrastructure-evolution {
    flex-direction: column;
  }
  
  .evolution-arrow {
    transform: rotate(90deg);
  }
}