html {
  font-size: 16px;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* style.css */

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  /* color: #2c3e50; */
  background-image: linear-gradient(135deg, #0c1f2f 0%, #000 100%);
  background-size: 200% 200%;

  /* padding: 20px; */
}
/* canvas {
  display: block;
} */
.wave-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
svg {
  display: block;
  width: 100%;
  height: 100px;
}
.wave {
  position: relative;
  width: 100%;
  height: 100px;
  fill: #d6e6f7;
}
h2,
h3 {
  color: #21364b;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* text-align: center; */
  margin-top: 1rem;
}

/* AI Chat Widget Styles */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.chat-toggle ion-icon {
  font-size: 30px;
  color: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

.chat-container {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  height: 450px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-container.show {
  display: flex;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: normal;
  color: white;
}

.close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-height: 300px;
}

.message {
  margin-bottom: 15px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-message p {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 5px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.user-message p {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 18px 18px 5px 18px;
  margin: 0 0 0 auto;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: right;
  max-width: 80%;
}

.chat-input-container {
  padding: 15px 20px;
  background: rgba(248, 249, 250, 0.8);
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  outline: none;
  font-size: 0.9rem;
  background-color: #667eea;
  transition: border-color 0.3s ease;
}

#chat-input:focus {
  border-color: #667eea;
}

.send-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.send-btn:hover {
  transform: scale(1.05);
}

.send-btn ion-icon {
  font-size: 18px;
}

/* Typing indicator animation */
.typing-indicator p {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #667eea;
  animation: typing 1.4s infinite;
  margin: 0 1px;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* AI Tools Section */
#ai-tools {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.05);
  margin: 20px 0;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.ai-tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.tool-card h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: normal;
}

.tool-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.tool-card select,
.tool-card input {
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.tool-card select:focus,
.tool-card input:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.15);
}

.tool-card select option {
  background: #2c3e50;
  color: white;
}

.ai-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin: 15px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ai-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.code-output,
.path-output {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border-left: 4px solid #667eea;
  min-height: 50px;
  color: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-x: auto;
}

.path-output {
  font-family: Arial, sans-serif;
  white-space: normal;
}

.path-output ul {
  margin: 10px 0;
  padding-left: 20px;
}

.path-output li {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.9);
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

header {
  /* background: #0f3c69; */
  background-image: linear-gradient(135deg, #0c1f2f 10%, #000 90%);
  color: white;
  padding: 20px 0;
  text-align: center;
  /* margin-bottom: 2rem; */
  position: relative;
  z-index: 1000;
  height: 50vh;
  overflow: hidden;
}
.profile {
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  justify-content: space-around;
}
.logo {
  position: absolute;
  top: 10px;
  left: 30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background-size: cover;
  z-index: 1000;
}

.profile-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-top: 0.5rem;
  border-bottom: 2px solid #779ec4;
  font-size: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  background-image: radial-gradient(
    circle at 25% 25%,
    #012f5c,
    #2a7dcb,
    #50aad4,
    #c0e0fa
  );
  color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.nav {
  /* background-color: #2479ce; */
  background-image: linear-gradient(135deg, #0c1f2f 0%, #000 100%);
  padding: 10px 0 20px 0;
  margin-top: 0%;
  position: relative;
  z-index: 1000;
  width: 100%;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* some cool animation in body */

.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;

  padding: 16px 0;
}
.nav ul li {
  margin: 0 10px;
  transition: transform 0.3s ease;
  position: relative;
  padding: 10px 15px;
  border-radius: 5px;
  /* background-color: #2479ce; */
  background-image: linear-gradient(135deg, #0c1f2f 0%, #000 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5em;
  font-size: 1.2rem;
  /* color: white; */
  transition: all 1s linear ease;
}
.nav ul li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(-135deg, #0c1f2f 0%, #000 100%);
}
.nav ul li a {
  color: rgb(112, 183, 213);
  text-decoration: none;
  transition: color 1s ease;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 1.2rem;
  border-radius: 4px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}
#start {
  /* background: #053b5685; */
  background-image: linear-gradient(135deg, #0c1f2f 0%, #000 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  margin-bottom: 4.4rem;
}
.section-title {
  position: relative;
  font-size: 2rem;
  margin: 3.6rem 0 6.6rem 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-image: repeating-linear-gradient(
    45deg,
    rgb(7, 180, 242),
    rgb(251, 99, 23),
    rgb(253, 18, 18) 30px
  );
  color: transparent;
  background-clip: text;
  text-align: center;
  transition: all 1s linear;
  /* border-bottom: 2px solid #a3caf1; */
  transform: perspective(1000px) rotateX(20deg) skewX(20deg);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-rows: auto;
  gap: 20px;
}
.col {
  padding: 10px;
}
.col:nth-child(odd) {
  background-image: linear-gradient(135deg, #0c1f2fc6 20%, #00000087 80%);
  border-radius: 10px;
}
#skills .row .col:nth-child(2) {
  /* change text and img placement */
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  order: 1;
  /* change img placement */
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.col img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 4px 10px rgba(6, 55, 111, 0.2);
  filter: brightness(0.9);
  /* a cool transform for img 3D  and have some hover effect */
  transform: perspective(1000px) rotateY(30deg);
  transition: transform 1s linear;
}

.col img:hover {
  transform: perspective(1000px) rotateY(40deg);
}
#skills .row .col img {
  transform: perspective(1000px) rotateY(-30deg);
  transition: transform 1s linear;
}
#skills .row .col img:hover {
  transform: perspective(1000px) rotateY(-40deg);
}

.sec-description {
  font-size: 1.2rem;
  color: #b1d6ef;

  margin-bottom: 2rem;
}
#skills {
  background-image: linear-gradient(135deg, #0c1f2f 0%, #000 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  margin-bottom: 4.4rem;
}
ul li {
  color: #b1d6ef;
}
#projects {
  /* background: #053b5685;
   */
  background-image: linear-gradient(135deg, #0c1f2f 0%, #000 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  margin-bottom: 4.4rem;
}
#contact {
  background-image: linear-gradient(135deg, #0c1f2f 0%, #000 100%);
  padding: 20px;
  display: flex;
  /* flex-direction: column; */
  justify-content: space-between;
  align-items: center;

  border-radius: 10px;
  /* margin-bottom: 4.4rem; */
}
#contact p {
  font-size: 0.5rem;
  color: #b1d6ef;
  text-align: center;
}

#contact ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
}
#contact ul li {
  margin: 0 10px;
  transition: transform 0.3s ease;
  position: relative;
  padding: 10px 15px;
  border-radius: 5px;
  background-image: linear-gradient(135deg, #0c1f2f 0%, #000 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
#contact ul li a {
  color: rgb(112, 183, 213);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 1.2rem;
}
#contact ul li:nth-child(1) a {
  color: #f18e0c; /* Red for email */
}
#contact ul li:nth-child(2) a {
  color: #0c91f1; /* Red for email */
}
#contact ul li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(-135deg, #0c1f2f 0%, #000 100%);
}
/* TODO */
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  bottom: -10px;
  height: 2px;
  background-image: linear-gradient(135deg, #0c1f2f 0%, #6e0303 100%);
  transition: background-image 1s linear;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: -10px;
  height: 2px;
  background-image: linear-gradient(135deg, #6e0303 0%, #0c1f2f 100%);
  transition: background-image 1s linear;
}

.section-title:hover::after {
  background-image: linear-gradient(135deg, #0c1f2f 0%, #6e0303 100%);
}
.section-title:hover::before {
  background-image: linear-gradient(135deg, #6e0303 0%, #0c1f2f 100%);
}

@media (max-width: 768px) {
  .profile {
    flex-direction: column;
    align-items: center;
  }
  .logo {
    position: relative;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .nav ul {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .ai-tools-container {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 600px) {
  .profile-title {
    font-size: 1.5rem;
  }
  .profile-description {
    font-size: 1rem;
  }
  .profile-image {
    width: 100px;
    height: 100px;
  }
  .profile {
    flex-direction: column;
    align-items: center;
  }
  .logo {
    position: relative;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .nav ul {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .nav ul li {
    padding: 10px;
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  h2,
  h3 {
    font-size: 1.5rem;
  }
  #contact ul {
    flex-direction: column;
    text-align: center;
  }
  #contact ul li {
    padding: 10px;
    font-size: 1rem;
  }
  .col img {
    max-width: 100%;
    height: auto;
  }
}
@media screen and (max-width: 500px) {
  .profile-title {
    font-size: 1.5rem;
  }
  .profile-description {
    font-size: 1rem;
  }
  .ai-tools-container {
    grid-template-columns: 1fr;
  }

  .tool-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    transition: background 0.3s ease;
  }

  .profile-image {
    width: 100px;
    height: 100px;
  }

  .profile {
    flex-direction: column;
    align-items: center;
  }
  .logo {
    position: relative;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .nav ul {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .nav ul li {
    padding: 10px;
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  h2,
  h3 {
    font-size: 1.5rem;
  }
  #contact ul {
    flex-direction: column;
    text-align: center;
  }
  #contact ul li {
    padding: 10px;
    font-size: 1rem;
  }
  .col img {
    max-width: 100%;
    height: auto;
  }
}
/* phone model */
@media screen and (max-width: 400px) {
  .profile-title {
    font-size: 1.5rem;
  }
  .profile-description {
    font-size: 1rem;
  }
  .profile-image {
    width: 100px;
    height: 100px;
  }
  .profile {
    flex-direction: column;
    align-items: center;
  }
  .logo {
    position: relative;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .nav ul {
    grid-template-columns: minmax(1fr);
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .nav ul li {
    padding: 10px;
    font-size: 0.6rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .row {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .col {
    padding: 10px;
  }
  h2,
  h3 {
    font-size: 1.5rem;
  }
  #contact ul {
    flex-direction: column;
    text-align: center;
  }
  #contact ul li {
    padding: 10px;
    font-size: 0.6rem;
  }
  .col img {
    max-width: 100%;
    height: auto;
  }
}
