@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Miniver&family=Space+Grotesk:wght@300..700&display=swap');

/* ─── Color tokens ─────────────────────── */
:root {
  --site-max-width: 1200px;
  --font-size-l: 20px;
  --nav-padding: 20px 30px;

  --primary-color: #000000;
  --bg-color: #FFFFFF;
  --surface-color: #F7F4EF;
  --text-secondary: #444444;
  --border-color: #000000;
  --accent-color: #F3A468;
  --btn-bg: #BAE6FF;
  --card-shadow: 10px 10px 0px rgba(0,0,0,0.5);
  --footer-border: #000000;
  --link-color: #000000;
  --skill-border: #000000;
  --percentage-color: #000000;
  --cursor-color: #f3abca;
  --circle-text-fill: #000000;
}

[data-theme="dark"] {
  --primary-color: #F0EDE8;
  --bg-color: #0D1117;
  --surface-color: #1C2A3A;
  --text-secondary: #CCCCCC;
  --border-color: #4A6A8A;
  --accent-color: #F3A468;
  --btn-bg: #1A3A4A;
  --card-shadow: 10px 10px 0px rgba(74,106,138,0.4);
  --footer-border: #2A4A6A;
  --link-color: #F0EDE8;
  --skill-border: #4A6A8A;
  --percentage-color: #F0EDE8;
  --cursor-color: #f3abca;
  --circle-text-fill: #F0EDE8;
}

/* ─── Reset ─────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Grotesk", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--primary-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

ul { list-style: none; }
a {
  text-decoration: none;
  color: var(--link-color);
  font-weight: 100;
  margin-left: 20px;
  font-size: 1.2em;
}
button { cursor: pointer; background-color: transparent; border: none; }
img { max-width: 100%; height: auto; }

/* ─── Header ─────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 360;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.cursor-gradient {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, 
    rgba(243, 164, 104, 0.25) 0%,
    rgba(186, 230, 255, 0.15) 50%,
    transparent 70%
  );
  opacity: 0;                          
  transition: opacity 0.5s ease;      
}

header .navbar {
  display: flex;
  padding: var(--nav-padding);
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img { width: 40px; height: 30px; margin-right: 8px; }
.logo-text { font-size: 1.8em; }

.navbar .nav-logo .logo-text {
  color: var(--primary-color);
  font-size: var(--font-size-l);
  font-weight: 700;
}

.navbar .nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 3vw;
}
.navbar .nav-menu .nav-link {
  color: var(--primary-color);
  padding: 0.5vh 1vw;
  font-size: 16px;
  border-radius: 5px;
  transition: 0.3s ease;
}
.section-heading {
  font-size: 2.8em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 40px;
  display: inline-block;
  position: relative;
  font-family: "Space Grotesk", sans-serif;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: -5%;
  width: 110%;
  height: 8px;
  background: none;
  border-bottom: 3px solid var(--primary-color);
  border-radius: 0 0 40% 40% / 0 0 8px 8px;
  transform: rotate(-0.8deg);
}
.navbar .nav-menu .nav-link:hover { color: var(--accent-color); }

/* ─── Dark mode toggle ─────────────────────── */
.theme-toggle {
  position: static;
  width: auto;
  height: auto;
  font-size: 1em;
  margin-right: 100px;
  white-space: nowrap;
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.3s ease;
}
.theme-toggle:hover { color: var(--accent-color); }
/* ─── Main / Hero ─────────────────────── */
section { padding: 100px 200px; }

.main {
  position: relative;
  max-width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  overflow: hidden;
}

.image3 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 5%;
  z-index: 360;
  width: 28%;
  height: auto;
}

.main h2 {
  font-size: 6em;
  color: var(--primary-color);
  font-family: 'Dancing Script', cursive;
  font-weight: 1000;
  margin-top: 10px;
}

.container .text {
  position: relative;
  font-size: 1.5em;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  margin-bottom: 50px;
}
.container .text .first-text { color: #f3abca; }

.text.sec-text:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  border-left: 2px solid var(--cursor-color);
  animation: animate 4s steps(12) infinite;
}
@keyframes animate {
  40%, 60% { left: 100%; }
  100% { left: 0%; }
}

.image5 {
  position: fixed;
  top: 10%;
  left: 0;
  z-index: 360;
  width: 5%;
  height: auto;
}

.main-btn {
  color: var(--primary-color);
  background-color: var(--btn-bg);
  border: 3px solid var(--border-color);
  font-size: 1.1em;
  font-weight: 500;
  display: inline-block;
  padding: 0.3em 1em;
  letter-spacing: 1px;
  border-radius: 100px;
  margin-bottom: 20px;
  margin-top: 30px;
}
.main-btn:hover {
  background-color: var(--accent-color);
  transition: 0.3s ease;
  transform: scale(1.05);
}

/* ─── AI icon ─────────────────────── */
.ai-icon {
  position: absolute;
  left: 450px;
  bottom: 355px;
  transform: translateY(-50%);
  z-index: 360;
  width: 110px;
  height: 90px;
}
.circle-text {
  position: absolute;
  left: 490px;
  bottom: 380px;
  width: 140px;
  height: 140px;
  pointer-events: none;
  transform: translateX(-50%) rotate(30deg);
  display: block;
}
.circle-text text {
  font-size: 27px;
  letter-spacing: 0.1px;
  fill: var(--circle-text-fill);
  font-weight: bold;
}

.social-links {
  font-size: 1.2em;
  padding-right: 30px;
  margin-left: 2px;
}

/* ─── About ─────────────────────── */
.about {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 100px 0;
  background-color: var(--bg-color);
}
.img-about { width: 20%; height: auto; margin-bottom: 20px; }

.about-me {
  background-color: var(--surface-color);
  width: 35em;
  height: 22.5em;
  border: 2px solid var(--border-color);
  box-shadow: var(--card-shadow);
  margin: 15px;
  padding: 10px;
  transition: 0.3s ease;
}
.about-me:hover { transform: scale(1.1); }

.me {
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 100;
  margin: 70px;
  line-height: 1.8;
  letter-spacing: 1px;
  margin-left: 10%;
  margin-right: 10%;
  background-color: transparent;
  color: var(--primary-color);
}

/* ─── Skills ─────────────────────── */
.skills {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 60px 0;
  background-color: var(--bg-color);
}
.img-skills { width: 30%; height: auto; }

.skills-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 20px;
}

.skill {
  width: 60px;
  height: 60px;
  border: 2px solid var(--skill-border);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: var(--surface-color);
  transition: 0.3s ease;
}
.skill:hover img { opacity: 0.2; }

.percentage {
  position: absolute;
  font-size: 1em;
  color: var(--percentage-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.skill:hover .percentage { opacity: 1; }

.skills .over {
  font-size: 1em;
  font-weight: 50;
  margin-bottom: 20px;
  margin-top: 20px;
  margin-left: -20px;
  color: var(--primary-color);
}

/* ─── Projects ─────────────────────── */
.projects {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 70px 0;
  background-color: var(--bg-color);
}

.img-projects {
  width: 30%;
  height: auto;
}

/* ─── Swiper ─────────────────────── */
.swiper {
  width: 100%;
  padding: 40px 0;
}

.swiper-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  color: var(--accent-color);
}

.swiper-pagination {
  margin-bottom: -10px;
}

/* ─── Slides ─────────────────────── */
.swiper-slide {
  display: flex;
  justify-content: center;
}

/* ─── Card ─────────────────────── */
.card {
  background-color: var(--surface-color);
  width: 100%;
  max-width: 800px;

  min-height: 20em;
  max-height: 35em;

  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: var(--card-shadow);

  margin: 0 auto; 
  padding: 25px;

  transition: 0.3s ease;

  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;  
}
.card:hover {
  transform: scale(1.1);
}

/* ─── Card Image ─────────────────────── */
.card .icon {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card .icon img {
  width: 100%;
  max-width: 220px;  
  max-height: 400px; 
  height: auto;
  object-fit: contain;
}

/* ─── Info ─────────────────────── */
.info {
  text-align: left;
  width: 100%;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 100;
  background-color: transparent;
  color: var(--primary-color);
}

.info h3 {
  font-size: 1.2em;
  font-weight: 700;
  margin: 10px;
  text-align: center;
  color: var(--primary-color);
}

.info p {
  color: var(--primary-color);
}

/* ─── Icons ─────────────────────── */
.nlp-icon {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

/* ─── Contact ─────────────────────── */
.contact {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 90px 0;
  background-color: var(--bg-color);
}
.img-contact { width: 20%; }

.contact-info {
  padding-right: 30px;
  margin-left: 20px;
  align-items: center;
  gap: 10px;
}

.contact-ino a:hover { color: var(--accent-color); }

.email { margin-bottom: 10px; font-size: 1.2em; margin-top: 40px; }
.phone { margin-left: -220px; margin-bottom: 10px; font-size: 1.2em; }
.in    { margin-left: -240px; margin-bottom: 10px; font-size: 1.2em; }
.loc   { margin-left: -140px; margin-bottom: 10px; font-size: 1.2em; }

/* ─── Footer ─────────────────────── */
.footer {
  background-color: var(--bg-color);
  padding: 2em;
  border-top: 1px solid var(--footer-border);
  display: flex;
  justify-content: space-between;
}
.footer-title {
  font-size: 1.2em;
  font-weight: 100;
  color: var(--primary-color);
}

/* ─── AI chat page ─────────────────────── */
.avatar {
  width: 80px;
  height: 90px;
  display: block;
  margin: 20px auto 0;
  border-radius: 50%;
}

.quick-actions {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  justify-content: center;
}

.profile-container {
  max-width: 500px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quick-actions button {
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: var(--surface-color);
  color: var(--primary-color);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quick-actions button:hover {
  background: var(--bg-color);
  color: var(--accent-color);
  border-color: var(--accent-color);
}


.chat-input {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  width: 520px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px;
}
.chat-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface-color);
  color: var(--primary-color);
}
.chat-input button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent-color);
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.message-row { width: 100%; display: flex; margin: 12px 0; }
.message-row.user { justify-content: flex-end; }
.message-row.ai   { justify-content: flex-start; }

.bubble {
  padding: 12px 20px;
  border-radius: 18px;
  max-width: 65%;
  font-size: 15px;
  line-height: 1.5;
}
.user-bubble {
  background: var(--accent-color);
  color: white;
  border-bottom-right-radius: 4px;
}
.ai-bubble {
  background: var(--surface-color);
  color: var(--primary-color);
  border-bottom-left-radius: 4px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
}
.ai-bubble p { margin-bottom: 12px; }

/* ─── Responsive ─────────────────────── */
@media (max-width: 1200px) {

  .nav-logo { display: flex; align-items: center; text-decoration: none; }
  .logo-img { width: 18px; height: 18px; margin-left: -40px; }

  header {
    position: fixed;
    width: 100%;
    height: 40px;
    z-index: 360;
    background-color: transparent;

  }

  header .navbar {
    display: flex;
    justify-content: flex-start;
    font-size: 0.8em;
    align-items: center;
    padding: 11px 15px;
    position: relative;
  }
  .theme-toggle {
  position: static;
  width: auto;
  height: auto;
  font-size: 1em;
  margin-right: 50px;
  white-space: nowrap;
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

  .navbar .nav-logo { display: flex; align-items: center; text-decoration: none; }

  .navbar .nav-logo .logo-text {
    color: var(--primary-color);
    font-size: 0.8em;
    margin-left: -14px;
    padding: 0px 2px;
  }

  .logo-img { width: 20px; height: 20px; margin-left: -25px; }

  .navbar .nav-menu {
    display: flex;
    gap: 1vw;
    list-style: none;
    align-items: center;
  }

  .navbar .nav-menu .nav-link {
    color: var(--primary-color);
    font-size: 0.8em;
    border-radius: 5px;
    transition: 0.3s ease;
  }
  .navbar .nav-menu .nav-link:hover { color: var(--accent-color); }

  .theme-toggle {
    width: 28px;
    height: 28px;
    font-size: 0.8em;
    margin-left: auto;
    flex-shrink: 0;
  }

  .main {
    position: relative;
    max-width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    overflow: hidden;
  }

  .image3 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5%;
    z-index: 360;
    width: 45%;
    height: auto;
    margin-left: -50px;
    margin-top: -50px;
  }

  .main h2 {
    font-size: 4em;
    color: var(--primary-color);
    font-family: 'Dancing Script', cursive;
    font-weight: 1000;
    margin-left: -170px;
    margin-top: -10px;
  }

  .container .text {
    position: relative;
    font-size: 1em;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    margin-bottom: 50px;
  }
  .container { margin-left: -170px; margin-top: 10px; }
  .container .text .first-text { color: #f3abca; }

  .text.sec-text:before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--bg-color);
    border-left: 2px solid var(--cursor-color);
    animation: animate 4s steps(12) infinite;
  }

  .image5 { position: fixed; top: 10%; left: 0; z-index: 360; width: 5%; height: auto; }

  .main-btn {
    color: var(--primary-color);
    background-color: var(--btn-bg);
    border: 3px solid var(--border-color);
    font-size: 1em;
    font-weight: 500;
    display: inline-block;
    padding: 0.3em 1em;
    letter-spacing: 1px;
    border-radius: 100px;
    margin-bottom: 20px;
    margin-top: 30px;
    margin-left: -170px;
  }
  .main-btn:hover {
    background-color: var(--accent-color);
    transition: 0.3s ease;
    transform: scale(1.05);
  }

  .social-links { font-size: 0.8em; padding-right: 10px; margin-left: -180px; }

  /* about */
  .about {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 180px 0;
    background-color: var(--bg-color);
  }
  .img-about { width: 50%; height: auto; margin-bottom: 30px; }
  .about-me {
    background-color: var(--surface-color);
    width: 20em;
    height: 20.5em;
    border: 2px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: 0.3s ease;
  }
  .me p { font-size: 0.8em; margin-top: -37px; }

  /* skills */
  .skills { padding: 180px 0; }
  .img-skills { width: 50%; height: auto; }
  .skills-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 50px);
    gap: 30px;
    margin-left: -8px;
  }
  .skill {
    width: 60px; height: 60px;
    border: 1px solid var(--skill-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }
  .skills .over {
    font-size: 0.8em;
    font-weight: 100;
    margin-bottom: 20px;
    margin-top: 40px;
    margin-left: -10px;
  }

  /* projects */
  .projects { padding: 180px 0; }
  .img-projects { width: 50%; }
  .projects .swiper-wrapper { max-width: 400px; margin-bottom: 50px; margin-top: 50px; }
  .swiper-pagination { margin-bottom: -10px; }


  .card {
  background-color: var(--surface-color);

  width: 18em;

  border: 2px solid var(--border-color);
  box-shadow: var(--card-shadow);

  margin: 15px;
  padding: 25px;

  transition: 0.3s ease;

  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
}


  .card:hover { transform: scale(1.1); }

  .info {
    text-align: left;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 100;
    font-size: 0.7em;
    background-color: transparent;
    color: var(--primary-color);
  }
  .info h3 { font-size: 1em; color: var(--primary-color); }

  .projects .swiper { width: 100%; display: flex; justify-content: center; }
  .projects .swiper-wrapper {
  width: 100%;
  max-width: 320px;
}

  /* contact */
  .contact { padding: 0px 0; }
  .img-contact { width: 50%; }
  .contact-info { padding-right: 60px; margin-left: 20px; align-items: center; gap: 10px; }

  a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 100;
    margin-left: 20px;
    font-size: 1em;
  }
  .contact-ino a:hover { color: var(--accent-color); }

  .email { font-size: 1em; margin-top: 40px; }
  .phone { margin-left: -150px; font-size: 1em; }
  .in    { margin-left: -160px; font-size: 1em; }
  .loc   { margin-left: -90px;  font-size: 1em; }

  .footer {
    background-color: var(--bg-color);
    padding: 2em;
    border-top: 1px solid var(--footer-border);
    display: flex;
    justify-content: space-between;
  }
  .footer-title { font-size: 1.2em; font-weight: 100; color: var(--primary-color); }

  /* AI icon phone */
  @media (max-width: 500px) {
    .ai-icon { left: 36%; bottom: 510px; width: 50px; height: 40px; transform: translateX(-50%); }
    .circle-text { left: 40%; bottom: 480px; width: 160px; height: 100px; transform: translateX(-90%) rotate(40deg); }
    .circle-text text { font-size: 16px; letter-spacing: 0.5px; }
  }

  @media (min-width: 501px) and (max-width: 1180px) {
    .ai-icon { position: absolute; left: 20%; bottom: 55%; width: 100px; height: 90px; transform: translateX(-50%); display: block; }
    .circle-text { position: absolute; left: 25%; bottom: 55%; width: 240px; height: 100px; transform: translateX(-90%) rotate(40deg); display: block; }
    .circle-text text { font-size: 16px; letter-spacing: 0.5px; }
  }

  /* AI chat page mobile */
  html, body { width: 100%; margin: 0; padding: 0; }

  .profile-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 12px !important;
    margin: 40px auto 0;
  }

  .chat-input {
    width: calc(100% - 24px);
    max-width: 520px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
  }

  .quick-actions {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 500px;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
  }
  .quick-actions button {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .quick-actions button:hover {
    background: var(--bg-color);
    color: var(--accent-color);
    border-color: var(--accent-color);
  }
}