/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 224;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;

}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}

h2.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}


.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* outer export  */
.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.typed-cursor {
  color: #fff;
  animation: blink 0.7s infinite;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}


/* outer export end */

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/* Diagonal split background - hidden by default (mobile) */
.l-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #F1C21B;
  z-index: -1;
  display: none;
}

.l-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: -2;
  display: none;
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 35%;
    height: 100%;
    padding: 2rem;
    background-color: #F1C21B;
    transition: 0.5s;
  }
}

@media screen and (max-width: 480px) {
  .nav__menu {
    width: 45%;
  }
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color: #000000;
}

.nav__link:hover {
  position: relative;
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

.nav__logo {
  color: var(--second-color);
  font-size: 22px;
}

.nav__toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated Menu Icon */
.nav-menu-animated {
  --color: var(--second-color);
  background: none;
  width: 50px;
  height: 50px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu-animated svg {
  fill: none;
  stroke: var(--color);
  stroke-width: 6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 40px;
  height: 40px;
}

.nav-menu-animated svg use:nth-of-type(1) {
  opacity: 1;
  stroke-dashoffset: 221;
  stroke-dasharray: 46 249;
  transition: stroke-dashoffset 0.12s linear 0.2s, stroke-dasharray 0.12s linear 0.2s, opacity 0s linear 0.2s;
}

.nav-menu-animated svg use:nth-of-type(2) {
  animation: stroke-animation-reverse 1.2s ease-out forwards;
}

.nav-menu-animated input {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
}

.nav-menu-animated input:checked + svg use:nth-of-type(1) {
  stroke-dashoffset: 175;
  stroke-dasharray: 0 295;
  opacity: 0;
  transition: stroke-dashoffset 0.07s linear 0.07s, stroke-dasharray 0.07s linear 0.07s, opacity 0s linear 0.14s;
}

.nav-menu-animated input:checked + svg use:nth-of-type(2) {
  animation: stroke-animation 1.2s ease-out forwards;
}

@keyframes stroke-animation {
  0% {
    stroke-dashoffset: 295;
    stroke-dasharray: 25 270;
  }
  50% {
    stroke-dashoffset: 68;
    stroke-dasharray: 59 236;
  }
  65% {
    stroke-dashoffset: 59;
    stroke-dasharray: 59 236;
  }
  100% {
    stroke-dashoffset: 68;
    stroke-dasharray: 59 236;
  }
}

@keyframes stroke-animation-reverse {
  0% {
    stroke-dashoffset: 68;
    stroke-dasharray: 59 236;
  }
  50% {
    stroke-dashoffset: 290;
    stroke-dasharray: 25 270;
  }
  65% {
    stroke-dashoffset: 295;
    stroke-dasharray: 25 270;
  }
  100% {
    stroke-dashoffset: 290;
    stroke-dasharray: 25 270;
  }
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

.sub-intro {
  align-self: center;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  bottom: 0;
  color: darkgrey;
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 5rem;
}

.home__data {
  align-self: center;
}

.home__title {
  font-family: "Poppins", sans-serif;
  font-weight: 650;
  margin-bottom: var(--mb-5);
}

.home__title-color {
  color: var(--first-color);
}

.home__social {
  display: flex;
  flex-direction: column;
}

.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Social Circle Badge Base Styles */
.social-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* LinkedIn Circle - Blue */
.linkedin-circle {
  background-color: #0976b4;
  color: white;
}

.home__social-icon.linkedin-icon:hover .linkedin-circle {
  background-color: #ffffff;
  color: #0976b4;
  animation: rotateClockwise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(241, 194, 27, 0.6), 0 6px 20px rgba(9, 118, 180, 0.3);
  border: 2px solid #F1C21B;
}

/* Instagram Circle - Pink/Gradient */
.instagram-circle {
  background-color: #E4405F;
  color: white;
}

.home__social-icon.instagram-icon:hover .instagram-circle {
  background-color: #ffffff;
  color: #E4405F;
  animation: rotateClockwise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(241, 194, 27, 0.6), 0 6px 20px rgba(228, 64, 95, 0.3);
  border: 2px solid #F1C21B;
}

/* GitHub Circle - Black */
.github-circle {
  background-color: #1a1a1a;
  color: white;
}

.home__social-icon.github-icon:hover .github-circle {
  background-color: #ffffff;
  color: #1a1a1a;
  animation: rotateClockwise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(241, 194, 27, 0.6), 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #F1C21B;
}

/* Clockwise Rotation Animation */
@keyframes rotateClockwise {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Desktop/Laptop only - hover effects */
@media screen and (min-width: 768px) {
  .social-circle {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

/* Mobile - no hover animations */
@media screen and (max-width: 767px) {
  .social-circle {
    transition: none;
  }

  .home__social-icon:hover .social-circle {
    animation: none !important;
    background-color: inherit;
    color: white;
  }

  /* Allow rotation animation on click */
  .social-circle.rotating {
    animation: rotateClockwise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    background-color: #ffffff !important;
    border: 2px solid #F1C21B !important;
  }

  /* Change icon colors on click for each platform */
  .linkedin-icon .linkedin-circle.rotating {
    color: #0976b4 !important;
    box-shadow: 0 0 20px rgba(241, 194, 27, 0.6), 0 6px 20px rgba(9, 118, 180, 0.3) !important;
  }

  .instagram-icon .instagram-circle.rotating {
    color: #E4405F !important;
    box-shadow: 0 0 20px rgba(241, 194, 27, 0.6), 0 6px 20px rgba(228, 64, 95, 0.3) !important;
  }

  .github-icon .github-circle.rotating {
    color: #1a1a1a !important;
    box-shadow: 0 0 20px rgba(241, 194, 27, 0.6), 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  }
}

/* Desktop - rotation animation */
@media screen and (min-width: 768px) {
  /* Mobile click animation - rotate (for all screens) */
  .social-circle.rotating {
    animation: rotateClockwise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }
}

.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
}

.home__blob {
  fill: var(--first-color);
}

.home__blob-img {
  width: 360px;
}

/* Responsive avatar image */
.home__avatar {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  object-fit: contain;
  will-change: transform;
  transition: transform 0.6s ease-in-out;
}

/* Levitation animation keyframes */
@keyframes levitate {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.home__avatar:hover {
  animation: levitate 2.5s ease-in-out infinite;
}

/* Disable hover animation on mobile devices (no mouse) */
@media (max-width: 768px) {
  .home__avatar:hover {
    animation: none;
  }
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
}

.button:hover {
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
}

/* ===== ABOUT =====*/
.about__container {
  row-gap: 2rem;
  text-align: center;
}

.about__subtitle {
  margin-bottom: var(--mb-2);
}

.about__img {
  justify-self: center;
}

.about__img img {
  width: 240px;
  height: 200px;
  border-radius: 2.5rem;
}

/* Mobile/Tablet: Show image, hide chatbot in about */
.chatbot-in-about {
  display: none;
}

.about-img-mobile {
  display: block;
}

/* Desktop: Show chatbot in about section, hide image */
@media screen and (min-width: 1024px) {
  .chatbot-in-about {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .about-img-mobile {
    display: none;
  }
}

/* Tablet responsive fix for about image */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .about__container {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    row-gap: 2.5rem;
  }

  .about__img img {
    width: 280px;
    height: 220px;
    max-width: 90%;
  }
}


/* ===== SKILLS ===== */
.skills__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 2.5rem;
  text-align: left;
}

/* Desktop: Show about image in skills section */
@media screen and (min-width: 1024px) {
  .skills__img-from-about {
    display: block;
    border-radius: 0.8rem;
    width: 100%;
    max-width: 420px;
    justify-self: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
  }

  .skills__img-from-about:hover {
    transform: scale(1.03);
  }
}

.skills__subtitle {
  margin-bottom: var(--mb-2);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--title-color);
}

.skills__text {
  margin-bottom: var(--mb-3);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* ===== SKILL CARD ===== */
.skills__data {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--container-color);
  border-radius: 0.8rem;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.skills__data:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.skills__names {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.skills__icon {
  font-size: 1.8rem;
  color: var(--first-color);
}

.skills__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--title-color);
}

.skills__percentage {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--first-color);
}

/* ===== PROGRESS BAR - SMOOTH ANIMATION ===== */
.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--first-color), #00c6ff);
  border-radius: 0.5rem;
  width: 0;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(106, 130, 251, 0.4);
}

.skills__frontend {
  width: 80%;
}

.skills__php {
  width: 55%;
}

/* ===== SKILLS DATA CONTAINER - SMOOTH ENTRY ===== */
.skills__data {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== PROGRESS WIDTHS ===== */
.skills__data:nth-child(1) .skills__bar {
  width: 85%;
}

.skills__data:nth-child(2) .skills__bar {
  width: 75%;
}

.skills__data:nth-child(3) .skills__bar {
  width: 80%;
}

.skills__data:nth-child(4) .skills__bar {
  width: 55%;
}

/* ===== IMAGE STYLING ===== */
.skills__img {
  border-radius: 0.8rem;
  width: 100%;
  max-width: 420px;
  justify-self: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.skills__img:hover {
  transform: scale(1.03);
}

/* ===== CHATBOT COMPONENT ===== */
.skills__chatbot-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Hide all elements in chatbot wrapper by default */
.skills__img {
  display: none;
}

.skills__img-from-about {
  display: none;
}

.skills__chatbot-wrapper .chatbot-container {
  display: none;
}

/* Mobile/Tablet: Show Skills-Sec.jpg, hide everything else */
@media screen and (max-width: 1023px) {
  .skills__img {
    display: block;
  }

  .skills__chatbot-wrapper .chatbot-container {
    display: none !important;
  }

  .skills__img-from-about {
    display: none;
  }
}

/* Desktop: Show about1.gif from chatbot wrapper, hide Skills-Sec.jpg and chatbot */
@media screen and (min-width: 1024px) {
  .skills__img {
    display: none;
  }

  .skills__img-from-about {
    display: block;
    border-radius: 0.8rem;
    width: 100%;
    max-width: 420px;
    justify-self: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
  }

  .skills__img-from-about:hover {
    transform: scale(1.03);
  }

  .skills__chatbot-wrapper .chatbot-container {
    display: none !important;
  }

  .skills__chatbot-wrapper {
    justify-content: center;
    padding-right: 0;
  }
}

.chatbot-container {
  width: 100%;
  max-width: 360px;
  height: 480px;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0.8rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4), 0 20px 60px rgba(0, 0, 0, 0.35), 0 16px 15px rgba(62, 111, 244, 0.2);
  overflow: hidden;
  border: 2px solid #F1C21B;
  box-sizing: border-box;
}

/* Desktop: Expand chatbot width and shift left */
@media screen and (min-width: 1024px) {
  .chatbot-in-about .chatbot-container {
    max-width: 500px;
    width: 400px;
    margin-left: -10rem;
    height: 460px;
  }
}

.chatbot-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.chatbot-status {
  background: #10b981;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: white;
  width: 100%;
  box-sizing: border-box;
}

.chat-message {
  display: flex;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  max-width: 85%;
  word-wrap: break-word;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.bot-message {
  align-self: flex-start;
  background: #3b82f6;
  color: white;
}

.user-message {
  align-self: flex-end;
  background: #6b7280;
  color: white;
}

.chatbot-input-area {
  padding: 0.75rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
  background: white;
}

.chatbot-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
}

.chatbot-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chatbot-send-btn {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.chatbot-send-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.chatbot-send-btn:active {
  transform: translateY(0);
}

/* ===== CHATBOT RESPONSIVE ===== */

/* Mobile devices (320px - 479px) */
@media screen and (max-width: 479px) {
  .chatbot-container {
    max-width: 100%;
    border-radius: 0.6rem;
  }

  .chatbot-header {
    padding: 0.75rem;
  }

  .chatbot-header h3 {
    font-size: 0.95rem;
  }

  .chatbot-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .chatbot-messages {
    padding: 0.75rem;
    gap: 0.6rem;
  }

  .chat-message {
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }

  .chatbot-input-area {
    padding: 0.6rem;
    gap: 0.4rem;
  }

  .chatbot-input {
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
  }

  .chatbot-send-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Tablet Portrait (480px - 767px) */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .chatbot-container {
    max-width: 90%;
    aspect-ratio: 1 / 1.35;
  }

  .chatbot-header h3 {
    font-size: 1.05rem;
  }

  .chat-message {
    font-size: 0.9rem;
  }

  .chatbot-input {
    font-size: 0.9rem;
  }

  .chatbot-send-btn {
    font-size: 0.9rem;
  }
}

/* Tablet Landscape & Small Desktop (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .chatbot-container {
    max-width: 100%;
    height: 480px;
  }
}

/* Desktop & Large Screens (1024px and above) */
@media screen and (min-width: 1024px) {
  .chatbot-container {
    max-width: 360px;
    height: 480px;
  }
}

/* ===== RESPONSIVENESS ===== */

/* Tablets */
@media screen and (max-width: 992px) {
  .skills__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .skills__text {
    text-align: left;
    margin-bottom: 2rem;
  }

  .skills__data {
    justify-content: space-between;
  }

  .skills__img {
    width: 80%;
    margin: 0 auto;
  }
}

/* Small devices (Phones under 576px) */
@media screen and (max-width: 576px) {
  .skills__data {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .skills__names {
    margin-bottom: 0.5rem;
  }

  .skills__percentage {
    position: absolute;
    top: 0.6rem;
    right: 1rem;
  }

  .skills__bar {
    height: 0.3rem;
  }

  .skills__name {
    font-size: 0.95rem;
  }

  .skills__icon {
    font-size: 1.6rem;
  }

  /* Mobile Work Section Spacing */
  .work__container {
    grid-template-columns: 1fr;
    padding: 0 0.8rem;
    gap: 1.2rem;
  }

  .work__img {
    border-radius: 1rem;
  }

  .work__img img {
    height: 200px;
  }
}

/* Animation when visible (optional enhancement) */
@keyframes fillProgress {
  from {
    width: 0;
  }

  to {
    width: var(--progress-width);
  }
}

/* ===== WORK =====*/
.work__container {
  row-gap: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.work__img {
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.work__img img {
  /* transition: 1s; */
  width: 100%;
  height: 250px;
  /* make all images same height */
  object-fit: cover;
  /* crop/scale to fit without distortion */
  display: block;
  transition: transform 0.3s ease;
}

.work__img img:hover {
  transform: scale(1.03);
}

.work__title {
  margin-top: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  color: #333;
  /* adjust as needed */
}

/* Glow animation for work cards on desktop */
@keyframes cardGlow {
  0% {
    box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  }
  50% {
    box-shadow: 0px 8px 35px rgba(52, 152, 219, 0.4), 0px 0px 20px rgba(52, 152, 219, 0.3);
  }
  100% {
    box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  }
}

/* Desktop hover effect with glow for work cards */
@media screen and (min-width: 1024px) {
  .work__img:hover {
    animation: cardGlow 2s ease-in-out;
    border-radius: 12px;
  }
  
  .work__img:hover img {
    box-shadow: inset 0px 0px 15px rgba(227, 240, 37, 0.941);
  }
}

/* ===== BLOGS SECTION - ENHANCED ===== */
.blog-section {
  padding: 3rem 0;
  position: relative;
  z-index: 2;
}

.blog-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Ensure no underlines on any blog links (grid cards + slider) */
.blog-section a {
  text-decoration: none;
}

.blog-section a:hover {
  text-decoration: none;
}

/* Desktop Carousel View - Book Flip Style */
.blog-carousel-wrapper {
  position: relative;
  display: none; /* Hidden by default, shown on desktop */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 0;
}

.blog-carousel-container {
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.blog-grid {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
}

.blog-card {
  position: relative;
  flex: 0 0 100%;
  height: 0;
  padding-bottom: 125%;
  background-color: #f5f5f5;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: preserve-3d;
  perspective: 2000px;
  cursor: pointer;
  border-radius: 1.2rem;
  transition: all 0.5s ease;
}

.blog-title-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 1.5rem;
  z-index: 1;
  border-radius: 1.2rem;
}

.blog-title-text {
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  margin: 0;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.blog-title-text::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--first-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.blog-title-link:hover .blog-title-text::after {
  width: 100%;
}

.blog-title-link:hover .blog-title-text {
  color: var(--first-color);
}

.blog-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1.2rem;
  cursor: pointer;
  transition: all 0.6s ease;
  transform-origin: left;
  box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 2;
}

.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1.2rem;
}

.blog-card:hover .blog-cover {
  transition: all 0.6s ease;
  transform: rotateY(-90deg);
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(62, 111, 244, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(62, 111, 244, 0.3);
}

.carousel-btn:hover {
  background: rgba(62, 111, 244, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(62, 111, 244, 0.5);
}

.carousel-prev {
  left: calc(50% - 250px);
}

.carousel-next {
  right: calc(50% - 250px);
}

/* Mobile Slider View */
.blog-slider-container {
  position: relative;
  display: none;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.blog-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mySlides {
  display: none;
  width: 100%;
  position: relative;
  padding-bottom: 125%;
  height: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mySlides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 1.2rem;
}

.mySlides.fade {
  animation: fade 0.5s ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Navigation Buttons */
.blog-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(252, 87, 94, 0.85);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(252, 87, 94, 0.3);
}

.blog-nav-btn:hover {
  background: rgba(247, 180, 44, 0.9);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(247, 180, 44, 0.4);
}

.blog-nav-prev {
  left: 1rem;
}

.blog-nav-next {
  right: 1rem;
}

/* Slide Indicator */
.blog-indicator {
  text-align: center;
  padding: 1.5rem 0;
}

#slide-counter {
  background: rgba(252, 87, 94, 0.15);
  color: #fc575e;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
  display: inline-block;
}

.text-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(245, 180, 44, 0.95);
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.text-overlay a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
  line-height: 1.4;
}

.text-overlay a:hover {
  color: #fc575e;
  /* remove underline on hover (mobile tap/hover) */
  text-decoration: none;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Laptop/Desktop (1200px and above) */
@media screen and (min-width: 1200px) {
  .blog-carousel-wrapper {
    display: block;
  }

  .blog-slider-container {
    display: none;
  }
}

/* Tablet Landscape (1024px - 1199px) */
@media screen and (min-width: 1024px) and (max-width: 1199px) {
  .blog-carousel-wrapper {
    display: block;
  }

  .blog-slider-container {
    display: none;
  }
}

/* Tablet Portrait (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .blog-carousel-wrapper {
    display: none;
  }

  .blog-slider-container {
    display: block;
    max-width: 450px;
  }
}

/* Mobile Large (480px - 767px) */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .blog-carousel-wrapper {
    display: none;
  }

  .blog-slider-container {
    display: block;
    max-width: 100%;
  }

  .blog-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .blog-nav-prev {
    left: 0.5rem;
  }

  .blog-nav-next {
    right: 0.5rem;
  }

  .text-overlay {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 0.8rem 1rem;
  }

  .text-overlay a {
    font-size: 0.95rem;
  }
}

/* Mobile Small (320px - 479px) */
@media screen and (max-width: 479px) {
  .blog-wrapper {
    padding: 0 0.8rem;
  }

  .blog-carousel-wrapper {
    display: none;
  }

  .blog-slider-container {
    display: block;
    max-width: 100%;
  }

  .mySlides img {
    border-radius: 0.8rem;
  }

  .blog-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .blog-nav-prev {
    left: 0.3rem;
  }

  .blog-nav-next {
    right: 0.3rem;
  }

  .text-overlay {
    bottom: 0.8rem;
    left: 0.8rem;
    right: 0.8rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.6rem;
  }

  .text-overlay a {
    font-size: 0.85rem;
  }

  #slide-counter {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
}

/* Square Monitors & TVs (Ultra-wide) */
@media screen and (min-width: 1600px) {
  .blog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }

  .blog-card-img {
    padding-bottom: 120%;
  }
}

/* ===== CONTACT =====*/
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1.2rem;
  border-radius: 0.8rem;
  border: 2px solid black;
  outline: none;
  margin-bottom: var(--mb-4);
  background-color: rgb(255, 255, 255);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  font-family: var(--body-font);
}

.contact__input:focus {
  border-color: var(--second-color);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.15);
  background-color: #f9f8c2;
}

/* Make the contact textarea a fixed height and non-resizable */
textarea.contact__input {
  height: 200px;
  /* fixed height - adjust as needed */
  min-height: 200px;
  max-height: 200px;
  resize: none;
  /* prevent manual resize */
  overflow: auto;
  /* scroll content if it overflows */
}

.contact__button {
  font-family: inherit;
  font-size: 16px;
  background: #3E6FF4;
  color: white;
  padding: 0.7em 1.2em;
  padding-left: 0.9em;
  display: flex;
  align-items: center;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  margin-left: auto;
}

.contact__button span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
}

.contact__button svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}

.contact__button:hover .svg-wrapper {
  animation: fly-1 0.6s ease-in-out infinite alternate;
}

.contact__button:hover svg {
  transform: translateX(1.2em) rotate(45deg) scale(1.1);
}

.contact__button:hover span {
  transform: translateX(5em);
}

.contact__button:active {
  transform: scale(0.95);
}

@keyframes fly-1 {
  from {
    transform: translateY(0.1em);
  }

  to {
    transform: translateY(-0.1em);
  }
}

/* Download CV Button Styles */
.slice {
  --c1: #202020;
  --c2: #3E6FF4;
  --size-letter: 14px;
  display: inline-block;
  padding: 0px 15px;
  height: 45px;
  font-size: var(--size-letter);
  background-color: transparent;
  border: calc(var(--size-letter) / 3.5) solid var(--c2);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: 300ms cubic-bezier(0.83, 0, 0.17, 1);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.slice .text {
  font-weight: var(--font-semi);
  color: var(--c2);
  position: relative;
  z-index: 1;
  transition: color 700ms cubic-bezier(0.83, 0, 0.17, 1);
  font-size: 14px;
  letter-spacing: 0.5px;
  font-family: var(--body-font);
}

.slice::after {
  content: "";
  width: 0;
  height: calc(300% + 1em);
  position: absolute;
  translate: -50% -50%;
  inset: 50%;
  rotate: 30deg;
  background-color: var(--c2);
  transition: 1000ms cubic-bezier(0.83, 0, 0.17, 1);
}

.slice:hover .text {
  color: white;
}

.slice:hover::after {
  width: calc(120% + 1em);
}

.slice:active {
  scale: 0.98;
  filter: brightness(0.9);
}

/* Mobile touch animation - triggers on click */
.slice.slice-active .text {
  color: white;
}

.slice.slice-active::after {
  width: calc(120% + 1em);
}

/* Prevent text selection on touch devices */
.slice {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/*=========Info Setion (mail,linkedin,github)*/
/* Base styles */
#below-form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: auto;
  padding: 2rem 0 0 0;
  margin: 0;
}

.contact-nav {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: auto;
}

/* ===== FLIP CARD STYLES ===== */
.flip-card-container {
  position: relative;
  width: 100%;
  perspective: 1000px;
  cursor: pointer;
  height: auto;
  margin-top: 3rem;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.flip-card-container.flipped .flip-card-inner {
  transform: rotateX(180deg);
}

.flip-card-front,
.flip-card-back {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front side - Tap to Reveal */
.flip-card-front {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #3E6FF4 0%, #2a88cf 100%);
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(62, 111, 244, 0.3);
  min-height: 150px;
  margin-top: -45px;
  margin-bottom: -110px;
}

.tap-to-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: white;
  text-align: center;
}

.tap-to-reveal p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tap-to-reveal i {
  font-size: 2rem;
  animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

/* Back side - Contact Info */
.flip-card-back {
  transform: rotateX(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #3E6FF4 0%, #2a88cf 100%);
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(62, 111, 244, 0.3);
  min-height: 150px;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Change color when card is flipped on laptop screens */
@media screen and (min-width: 769px) {
  .flip-card-container.flipped .flip-card-back {
    background: linear-gradient(135deg, #3E6FF4 0%, #F1C21B 100%);
    box-shadow: 0 8px 30px rgba(241, 194, 27, 0.4);
  }
}

.flip-card-back .contact-info-upper-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.2rem;
  border: none;
  padding: 1.5rem 2rem;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.flip-card-back .contact-info-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem;
}

.flip-card-back .contact-info-container p {
  margin: 0;
}

.flip-card-back .hamburger {
  display: none;
}

/* Fun hover effects for contact links and icons */
@media screen and (min-width: 769px) {
  .flip-card-back .contact-info-container {
    transition: all 0.3s ease;
  }

  .flip-card-back .contact-info-container:hover {
    transform: translateY(-3px);
  }

  .flip-card-back .contact-info-container img {
    transition: all 0.3s ease;
    filter: grayscale(0%);
  }

  .flip-card-back .contact-info-container:hover img {
    filter: drop-shadow(0 0 8px rgba(62, 111, 244, 0.6)) saturate(1.2);
  }

  .flip-card-back .contact-info-container a {
    position: relative;
    transition: all 0.3s ease;
  }

  .flip-card-back .contact-info-container a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3E6FF4, #F1C21B);
    transition: width 0.4s ease;
  }

  .flip-card-back .contact-info-container:hover a {
    color: #3E6FF4;
  }

  .flip-card-back .contact-info-container:hover a::after {
    width: 100%;
  }
}

/* Hamburger button */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  margin: 1rem;
  transition: all 0.3s ease;
}

/* Show hamburger only on mobile (non-flipped state) */
@media screen and (max-width: 768px) {
  .flip-card-container.flipped .hamburger {
    display: block;
  }
}

/* Bounce animation for hamburger icon */
@keyframes hamburgerBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.hamburger.bounce {
  animation: hamburgerBounce 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Contact menu (desktop default) */
.contact-info-upper-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  border-radius: 2rem;
  border: 0.1rem solid rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  padding: 0.5rem 1rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container img {
  height: 2rem;
}

.email-icon {
  height: 2.5rem;
}

.contact-info-container p {
  font-size: 1rem;
}

.contact-info-container a {
  text-decoration: none;
  color: inherit;
}

.contact-info-container a:hover {
  text-decoration: none;
  color: #3E6FF4;
}

/* Mobile - hide flip card, show normal contact info */
@media screen and (max-width: 768px) {
  .flip-card-front {
    display: none;
  }

  .flip-card-back {
    transform: rotateX(0deg);
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-height: auto;
  }

  .flip-card-back .contact-info-upper-container {
    display: flex;
    background: rgb(250, 250, 250);
    border: 0.1rem solid rgb(163, 163, 163);
  }

  .flip-card-back .hamburger {
    display: block;
  }

  .contact-info-upper-container {
    display: none;
    /* hide menu by default */
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
  }

  .contact-info-upper-container.show {
    display: flex;
    /* toggle on click */
  }

  .contact-info-container {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Laptop/Desktop - show flip card with tap to reveal */
@media screen and (min-width: 769px) {
  .flip-card-container {
    cursor: pointer;
  }

  .flip-card-front {
    display: flex;
  }

  .flip-card-back .hamburger {
    display: none !important;
  }
}

@media screen and (max-width: 480px) {
  .contact-info-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-info-container img {
    margin-bottom: 0.3rem;
  }

  /* Extra small mobile - Work Section */
  .work__container {
    grid-template-columns: 1fr;
    padding: 0 0.6rem;
    gap: 1rem;
  }

  .work__img img {
    height: 180px;
  }

  .work__title {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  #contact-menu {
    display: none;
    /* hide menu by default */
    flex-direction: column;
    align-items: flex-start;
    width: 92%;
    margin-top: 0.5rem;
    padding: 1rem;
    margin: 0.5rem 1rem;
  }

  #contact-menu.show {
    display: flex;
    /* toggle on click */
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SUCCESS MESSAGE STYLING ===== */
.success-message {
  margin-top: 1.5rem;
  padding: 1.2rem 1.8rem;
  border-radius: 0.6rem;
  font-weight: 500;
  text-align: center;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.3px;
  line-height: 1.6;
  animation: slideInDown 0.5s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FOOTER =====*/
.footer {
  background-color: #F1C21B;
  color: #000000;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 1.5rem 0;
  height: 100%;
  width: 100%;
  margin-top: 0.7rem;
}

.footer__title {
  font-size: 2rem;
  margin-bottom: var(--mb-4);
}

.footer__social {
  margin-bottom: var(--mb-4);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer__icon {
  font-size: 1.9rem;
  color: #0b0000;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.footer-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* Facebook Footer Icon */
.facebook-footer-icon:hover .footer-icon-wrapper {
  background-color: #1877F2;
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.facebook-footer-icon:hover .footer-icon-wrapper i {
  color: white;
}

/* Instagram Footer Icon */
.instagram-footer-icon:hover .footer-icon-wrapper {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(228, 64, 95, 0.4);
}

.instagram-footer-icon:hover .footer-icon-wrapper i {
  color: white;
}

/* X (Twitter) Footer Icon */
.x-footer-icon:hover .footer-icon-wrapper {
  background-color: #000000;
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.x-footer-icon:hover .footer-icon-wrapper i {
  color: white;
}

/* Footer Icon Pop Animation - Mobile/Tablet */
@keyframes footerIconPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Icon color inside wrapper */
.footer-icon-wrapper i {
  font-size: 1.9rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: inherit;
}

/* Default icon colors before hover */
.facebook-footer-icon .footer-icon-wrapper i {
  color: #1877F2;
}

.instagram-footer-icon .footer-icon-wrapper i {
  color: #E4405F;
}

.x-footer-icon .footer-icon-wrapper i {
  color: #000000;
}

.footer__copy {
  font-size: var(--smaller-font-size);
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }

  .home__img {
    width: 300px;
  }

  /* Reduce logo size for very small screens */
  .nav__logo {
    font-size: 13px;
  }
}

@media screen and (max-width: 767px) {

  /* Reduce logo size for mobile/tablet */
  .nav__logo {
    font-size: 13px;
  }
}

@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }

  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }

  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }

  .home__img {
    width: 400px;
    bottom: 25%;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }

  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }

  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }

  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }

  .contact__container {
    justify-items: center;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .section-title {
    margin-bottom: var(--mb-6);
  }

  .section-title::after {
    width: 80px;
    top: 3rem;
  }

  .nav {
    height: calc(var(--header-height) + 0.8rem);
  }

  /* Show diagonal split on desktop - backward diagonal */
  .l-header {
    overflow: hidden;
  }

  .l-header::before {
    display: block;
    width: 35%;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
  }

  .l-header::after {
    display: block;
  }

  .nav__list {
    display: flex;
    padding-top: 0;
  }

  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }

  .nav__toggle {
    display: none;
  }

  .nav__link {
    color: var(--second-color);
  }

  .home {
    padding: 8rem 0 2rem;
  }

  .home__img {
    width: 400px;
    bottom: 10%;
  }

  .about__container {
    padding-top: 2rem;
  }

  .about__img img {
    width: 430px;
    height: auto;
    border-radius: 1rem;
  }

  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }

  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}

@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .home {
    padding: 10rem 0 2rem;
  }

  .home__img {
    width: 450px;
  }
}

/*===== CHATBOT MODAL POPUP =====*/

/* Floating Chatbot Button (Bottom Right - Mobile/Tablet Only) */
.chatbot-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3E6FF4 0%, #FFD84D 100%);
  color: #F5F5F5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  z-index: 999;
}

.chatbot-floating-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 6px 30px rgba(62, 111, 244, 0.6);
}

.chatbot-floating-btn:active {
  transform: scale(0.95);
}

/* Chatbot Backdrop */
.chatbot-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  transition: opacity 0.3s ease;
}

.chatbot-backdrop.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.chatbot-backdrop:not(.hidden) {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Chatbot Modal */
.chatbot-modal {
  position: relative;
  background: white;
  border-radius: 5px;
  box-shadow: 0 10px 40px rgba(234, 234, 195, 0.411), 0 0 0 1px rgba(62, 111, 244, 0.351);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  height: 350px;
  max-height: 65vh;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid #F1C21B;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close Button - Small at Top Right Corner */
.chatbot-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  line-height: 1;
}

.chatbot-close:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.chatbot-close:active {
  transform: rotate(90deg) scale(0.9);
}

/* Chatbot Header */
.chatbot-modal-header {
  padding: 1.2rem;
  border-bottom: 2px solid #020a1a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FFD84D 0%, #3E6FF4 100%);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15);
}

.chatbot-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
}

.chatbot-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Messages Container */
.chatbot-modal-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #ffffff;
}

.chatbot-modal-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-modal-messages::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}

.chatbot-modal-messages::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.chatbot-modal-messages::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Chat Messages in Modal */
.chatbot-modal-messages .chat-message {
  display: flex;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: 0.6rem;
  max-width: 85%;
  word-wrap: break-word;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.chatbot-modal-messages .bot-message {
  align-self: flex-start;
  background: #3b82f6;
  color: white;
}

.chatbot-modal-messages .user-message {
  align-self: flex-end;
  background: #6b7280;
  color: white;
}

/* Input Area */
.chatbot-modal-input-area {
  padding: 0.75rem;
  border-top: 2px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
  background: #fafbfc;
  flex-shrink: 0;
  align-items: stretch;
}

.chatbot-modal-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.chatbot-modal-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chatbot-modal-send {
  width: 38px;
  height: 38px;
  padding: 0;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.6rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.chatbot-modal-send:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.chatbot-modal-send:active {
  transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 479px) {
  .chatbot-floating-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .chatbot-modal {
    max-width: 95%;
    height: 420px;
    max-height: 80vh;
  }

  .chatbot-modal-header {
    padding: 0.8rem;
  }

  .chatbot-modal-header h3 {
    font-size: 0.95rem;
  }

  .chatbot-modal-messages {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .chatbot-modal-messages .chat-message {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
  }

  .chatbot-modal-input-area {
    padding: 0.6rem;
    gap: 0.4rem;
  }

  .chatbot-modal-input {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
  }

  .chatbot-modal-send {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .chatbot-close {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    top: 8px;
    right: 8px;
  }
}

@media screen and (max-width: 768px) {
  .chatbot-modal {
    max-width: 90%;
    height: 480px;
  }
}

/* Hide chatbot on desktop (1024px and above) - ONLY FOR MOBILE/TABLET */
@media screen and (min-width: 1024px) {
  .chatbot-floating-btn {
    display: none !important;
  }

  .chatbot-backdrop {
    display: none !important;
  }

  .chatbot-modal {
    display: none !important;
  }
}