/*-----------------------------------*\
  #style.css
\*-----------------------------------*/
/**
 * copyright 2022 @codewithsadee
 */
/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/
:root {
  /**
   * colors
   */
  /* gradient */
  --bg-gradient-onyx: linear-gradient(to bottom right,
      hsl(230, 72%, 14%) 3%,
      hsl(240, 60%, 10%) 97%);
  --bg-gradient-jet: linear-gradient(to bottom right,
      hsla(230, 72%, 20%, 0.35) 0%,
      hsla(230, 50%, 10%, 0) 100%), hsl(230, 50%, 12%);
  --bg-gradient-blue-1: linear-gradient(to bottom right,
      hsl(220, 100%, 64%) 0%,
      hsla(200, 100%, 74%, 0.15) 50%);
  --bg-gradient-blue-2: linear-gradient(135deg,
      hsla(230, 100%, 62%, 0.35) 0%,
      hsla(200, 100%, 72%, 0.1) 60%), hsl(230, 60%, 16%);
  --border-gradient-neon: linear-gradient(to bottom right,
      hsl(195, 100%, 68%) 0%,
      hsla(285, 100%, 72%, 0.4) 50%);
  --text-gradient-cyan: linear-gradient(to right,
      hsl(195, 100%, 80%),
      hsla(285, 100%, 75%, 0.85));
  --hover-glow: hsla(195, 100%, 75%, 0.6);
  /* solid */
  --jet: hsl(230, 50%, 22%);
  --onyx: hsl(230, 50%, 16%);
  --eerie-black-1: hsl(230, 50%, 12%);
  --eerie-black-2: hsl(230, 50%, 10%);
  --smoky-black: hsl(230, 50%, 8%);
  --white-1: hsl(0, 0%, 100%);
  --white-2: hsl(0, 0%, 98%);
  --neon-blue: hsl(220, 100%, 68%);
  --cyber-cyan: hsl(195, 100%, 72%);
  --soft-purple: hsl(285, 100%, 78%);
  --light-gray: hsl(0, 0%, 88%);
  --light-gray-70: hsla(0, 0%, 88%, 0.7);
  --bittersweet-shimmer: hsl(0, 47%, 55%);
  /**
   * typography
   */
  /* font-family */
  --ff-poppins: 'Poppins', sans-serif;
  /* font-size */
  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 16px;
  --fs-5: 15px;
  --fs-6: 14px;
  --fs-7: 13px;
  --fs-8: 11px;
  /* font-weight */
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  /**
   * shadow (enhanced for depth)
   */
  --shadow-1: -4px 8px 26px hsla(220, 100%, 12%, 0.45),
    inset 0px 0px 12px hsla(195, 100%, 62%, 0.5);
  --shadow-2: 0 16px 32px hsla(220, 100%, 12%, 0.55),
    0 0px 12px hsla(285, 100%, 68%, 0.55);
  --shadow-3: 0 16px 44px hsla(220, 100%, 14%, 0.5),
    inset 0px 0px 12px hsla(220, 100%, 72%, 0.4);
  --shadow-4: 0 26px 52px hsla(220, 100%, 18%, 0.45),
    0 6px 18px hsla(195, 100%, 62%, 0.45);
  --shadow-5: 0 26px 85px hsla(220, 100%, 22%, 0.55),
    0 6px 22px hsla(195, 100%, 62%, 0.45);
  /**
   * transition (more natural easing)
   */
  --transition-1: 0.18s ease-out;
  --transition-2: 0.42s ease-in-out;
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  cursor: pointer;
}

li {
  list-style: none;
}

img,
ion-icon,
.lucide,
a,
button,
time,
span {
  display: block;
}

.lucide {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: text-bottom;
  margin-left: 4px;
  stroke-width: 2.5;
  color: var(--cyber-cyan);
}

button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

input,
textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}

::selection {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
}

:focus {
  outline-color: var(--orange-yellow-crayola);
}

html {
  font-family: var(--ff-poppins);
}

body {
  background: var(--smoky-black);
  cursor: none;
  /* Hide default cursor */
  overflow-x: hidden;
}

body.modal-open {
  /* overflow: hidden removed to prevent scroll jumping to top */
}

#custom-cursor {
  /* Initial styles managed by JS, but can be overridden here */
  box-shadow: 0 0 10px var(--neon-blue);
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/
.sidebar,
article {
  background: hsla(240, 2%, 12%, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Gradient Border Trick */
  border: 1px solid transparent;
  /* Fallback */
  box-shadow: var(--shadow-2);
  z-index: 1;
  position: relative;
  overflow: hidden;
  /* For noise contained inside if needed, or keeping interactions clean */
  transition: transform 0.1s;
  /* Smooth tilt */
}

/* Noise overlay for the whole page */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3MDAgNzAwIiB3aWR0aD0iNzAwIiBoZWlnaHQ9IjcAwIj48ZmlsdGVyIGlkPSJub2lzZUZpbHRlciI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNjUiIG51bU9jdGFuZXM9IjMiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbm9pc2VGaWx0ZXIpIiBvcGFjaXR5PSIxIi8+PC9zdmc+');
}

.separator {
  width: 100%;
  height: 1px;
  background: var(--light-gray-70);
  margin: 16px 0;
}

.icon-box {
  position: relative;
  background: var(--border-gradient-neon);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--orange-yellow-crayola);
  box-shadow: var(--shadow-3);
  z-index: 1;
  transition: var(--transition-1);
}

.icon-box:hover {
  box-shadow: 0 0 15px var(--hover-glow);
  transform: scale(1.05);
}

.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--eerie-black-1);
  border-radius: inherit;
  z-index: -1;
}

.icon-box ion-icon {
  --ionicon-stroke-width: 35px;
  transition: var(--transition-2);
  color: var(--cyber-cyan);
}

.icon-box:hover ion-icon {
  color: var(--neon-blue);
}

article {
  display: none;
}

article.active {
  display: block;
  animation: fade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

/* View Transitions API */
@keyframes vt-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

::view-transition-old(root) {
  animation: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both vt-fade-out;
  pointer-events: none;
}

::view-transition-new(root) {
  animation: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both vt-fade-in;
  animation-delay: 0.05s;
  pointer-events: none;
}

.sidebar,
#command-dock,
#back-to-top,
#scroll-progress-container,
.scroll-down {
  view-transition-name: none;
}

@keyframes fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.h2,
.h3,
.h4,
.h5 {
  color: var(--neon-blue);
  text-transform: capitalize;
}

.h2 {
  font-size: var(--fs-1);
}

.h3 {
  font-size: var(--fs-2);
}

.h4 {
  font-size: var(--fs-4);
}

.h5 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.article-title {
  position: relative;
  padding-bottom: 7px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

@media (max-width: 580px) {
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--text-gradient-yellow);
  border-radius: 3px;
}

.has-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.has-scrollbar::-webkit-scrollbar-track {
  background: var(--onyx);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-button {
  width: 20px;
}

.content-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 15px;
  padding-top: 45px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  z-index: 1;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.contact-item a.contact-link {
  display: inline-block;
  background: var(--orange-yellow-crayola);
  color: var(--white-1);
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact-item a.contact-link:hover {
  background: var(--cyber-cyan);
  color: var(--eerie-black-2);
  box-shadow: 0 0 10px var(--cyber-cyan);
}

/*-----------------------------------*\
  #MAIN
\*-----------------------------------*/
main {
  margin: 15px 12px;
  margin-bottom: 75px;
  min-width: 259px;
}

/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/
.sidebar {
  margin-bottom: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: max-height var(--transition-2);
  background: var(--eerie-black-2);
  border: 1px solid var(--onyx);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}

.sidebar.active {
  max-height: 100vh !important;
  overflow-y: visible;
  height: auto;
  transition: max-height var(--transition-2);
}

.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.avatar-box {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-gradient-onyx);
  border-radius: 20px;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-initials {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: var(--fw-600);
  color: var(--cyber-cyan);
  background: linear-gradient(135deg, rgba(87, 170, 255, 0.2), rgba(99, 60, 200, 0.35));
}

.contact-row {
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info {
  max-width: calc(100% - 52px);
  width: 100%;
}

.contact-label {
  margin-bottom: 4px;
}

.contact-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.resume-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--bg-gradient-onyx);
  box-shadow: var(--shadow-1);
  font-size: 14px;
  font-weight: var(--fw-500);
  text-decoration: none;
  color: var(--light-gray);
  min-height: 44px;
  transition: all var(--transition-1);
}

.resume-btn:hover {
  background: var(--bg-gradient-blue-1);
  color: var(--cyber-cyan);
}

.resume-btn ion-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.info-content .name {
  color: var(--white-2);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}

.info-content .title {
  color: var(--white-1);
  background: var(--onyx);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
  width: max-content;
  padding: 3px 12px;
  border-radius: 8px;
}

/* S1-T8: Open-to-work badge + tagline styles */
.open-to-work-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsla(145, 80%, 40%, 0.1);
  border: 1px solid hsla(145, 80%, 40%, 0.25);
  color: var(--white-1);
  font-size: var(--fs-8);
  font-weight: var(--fw-500);
  padding: 5px 12px;
  border-radius: 20px;
  margin: 5px auto 8px auto;
  width: fit-content;
  box-shadow: 0 4px 12px hsla(145, 80%, 40%, 0.05);
  transition: var(--transition-1);
}

.open-to-work-badge:hover {
  background: hsla(145, 80%, 40%, 0.15);
  border-color: hsla(145, 80%, 40%, 0.4);
  box-shadow: 0 4px 15px hsla(145, 80%, 40%, 0.15);
}

.availability-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background-color: hsl(145, 95%, 45%);
  border-radius: 50%;
  display: inline-block;
}

.availability-dot::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background-color: inherit;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.sidebar-tagline {
  color: var(--white-2);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
  line-height: 1.5;
  text-align: center;
  max-width: 260px;
  margin: 0 auto 15px auto;
  padding: 0;
}

.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 0 15px;
  font-size: 13px;
  color: var(--orange-yellow-crayola);
  background: var(--border-gradient-onyx);
  padding: 10px;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  z-index: 1;
}

.info_more-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--cyber-cyan);
  transition: var(--transition-1);
  z-index: -1;
}

.info_more-btn:hover,
.info_more-btn:focus {
  background: var(--bg-gradient-yellow-1);
}

.info_more-btn:hover::before,
.info_more-btn:focus::before {
  background: var(--bg-gradient-yellow-2);
}

.info_more-btn span {
  display: none;
}

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info {
  max-width: calc(100% - 46px);
  width: calc(100% - 46px);
}

.contact-title {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info :is(.contact-link, time, address) {
  color: var(--white-2);
  font-size: var(--fs-7);
}

.contact-info address {
  font-style: normal;
}

.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-bottom: 4px;
  padding-left: 7px;
}

.social-item .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-height: auto;
  padding: 0;
  border-radius: 8px;
  color: var(--light-gray-70);
  font-size: 20px;
  text-decoration: none;
  transition: color var(--transition-1);
}

.social-item {
  flex: 0 1 auto;
  min-width: 0;
}

.social-label {
  font-size: var(--fs-7);
  display: none;
}

.social-arrow {
  display: none;
}

.social-item .social-link:hover {
  color: var(--cyber-cyan);
}

/* Coding Profiles Section Styles */
.coding-profiles-section {
  margin-top: 20px;
}

.coding-profiles-title {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.coding-profiles-title ion-icon {
  font-size: 16px;
  color: var(--cyber-cyan);
}

.coding-profiles-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.coding-profile-item {
  background: var(--border-gradient-neon);
  border-radius: 12px;
  padding: 1px;
  position: relative;
  box-shadow: var(--shadow-2);
  transition: transform var(--transition-1), box-shadow var(--transition-1);
}

.coding-profile-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px hsla(195, 100%, 68%, 0.3);
}

.coding-profile-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  background: var(--eerie-black-2);
  border-radius: 12px;
  color: var(--light-gray);
  text-decoration: none;
  font-size: var(--fs-8);
  font-weight: var(--fw-500);
  transition: color var(--transition-1);
  z-index: 1;
}

.coding-profile-link:hover {
  color: var(--cyber-cyan);
}

.coding-profile-link ion-icon {
  font-size: 16px;
  color: var(--neon-blue);
  transition: color var(--transition-1);
}

.coding-profile-link:hover ion-icon {
  color: var(--cyber-cyan);
}

/* Responsive adjustments */
@media (max-width: 580px) {
  .coding-profiles-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .coding-profile-link {
    padding: 12px 10px;
    font-size: 12px;
  }

  /* --- Mobile Hero/Sidebar Fixes --- */
  .sidebar {
    border-radius: 12px;
    padding: 20px;
  }

  .sidebar-info {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
  }

  .avatar-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--shadow-2);
  }

  .avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .info-content {
    text-align: center;
  }

  .info-content .name {
    margin-bottom: 5px;
    white-space: nowrap;
    /* Prevent awkward breaks */
    font-size: 20px;
  }

  /* Fix typewriter/title wrapping */
  .article-title {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
  }

  #changing-text {
    font-size: 14px;
    margin-left: 0;
  }

  /* Fix Social Icons Stacking */
  .social-list {
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    padding: 0 6px;
    margin-top: 16px;
    flex-direction: column;
  }

  .social-item {
    width: 100%;
    flex: 0 0 auto;
  }

  .social-item .social-link {
    flex-direction: row;
    font-size: 15px;
    color: var(--light-gray);
    background: var(--bg-gradient-onyx);
    border: 1px solid rgba(87, 170, 255, 0.2);
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    transition: all var(--transition-1);
    min-height: 52px;
    gap: 14px;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .social-item .social-link:hover {
    color: var(--neon-blue);
    background: rgba(87, 170, 255, 0.15);
    border-color: rgba(87, 170, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(87, 170, 255, 0.2);
  }

  .social-item .social-link ion-icon {
    font-size: 19px;
    flex-shrink: 0;
  }

  .social-label {
    display: inline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    font-weight: var(--fw-500);
    letter-spacing: 0.2px;
  }

  .social-arrow {
    display: inline-block;
    margin-left: auto;
    opacity: 0.45;
    flex-shrink: 0;
  }

  .social-item .social-link:active {
    transform: scale(0.98);
  }

  /* Collapsible button positioning */
  .info_more-btn {
    top: 10px;
    right: 10px;
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    /* Ensure it shows */
    align-items: center;
    justify-content: center;
  }

  .info_more-btn span {
    display: none;
  }
}

@media (min-width: 580px) {
  .coding-profiles-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (min-width: 1250px) {
  .coding-profiles-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .coding-profile-link {
    justify-content: flex-start;
    padding-left: 15px;
  }
}

/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/
.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: hsla(240, 2%, 12%, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--onyx);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-3);
  z-index: 5;
}

.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.navbar-link {
  color: var(--light-gray);
  font-size: var(--fs-7);
  padding: 20px 10px;
  transition: color var(--transition-1), transform 0.2s ease-in-out;
  cursor: pointer;
}

.navbar-link:hover,
.navbar-link:focus {
  color: var(--cyber-cyan);
  transform: translateY(-2px);
}

.navbar-link.active {
  color: var(--neon-blue);
  font-weight: var(--fw-500);
}

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/
.about .article-title {
  margin-bottom: 15px;
  color: var(--neon-blue);
  font-size: var(--fs-2);
  font-weight: var(--fw-500);
  display: flex;
}

#changing-text {
  color: var(--orange-yellow-crayola);
  font-weight: var(--fw-700);
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  border-right: 2px solid var(--neon-blue);
  animation: blinkCursor 0.7s steps(2) infinite;
}

/* Cursor blinking animation */
@keyframes blinkCursor {
  50% {
    border-color: transparent;
  }
}

.about-text {
  color: var(--light-gray);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  line-height: 1.7;
  text-align: justify;
}

.about-text p {
  margin-bottom: 15px;
  transition: color var(--transition-1);
}

.about-text p:hover {
  color: var(--cyber-cyan);
}

/**
 * #service 
 */
.service {
  margin-bottom: 40px;
}

.service-title {
  margin-bottom: 20px;
  font-size: var(--fs-2);
  font-weight: var(--fw-500);
  color: var(--neon-blue);
  text-align: center;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  position: relative;
  background: var(--border-gradient-neon);
  padding: 22px;
  border-radius: 16px;
  box-shadow: var(--shadow-3);
  z-index: 1;
  transition: transform var(--transition-1), box-shadow var(--transition-1);
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-4);
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.service-icon-box {
  margin-bottom: 12px;
}

.service-icon-box img {
  margin: auto;
  max-width: 50px;
}

.service-content-box {
  text-align: center;
}

.service-item-title {
  margin-bottom: 8px;
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  color: var(--cyber-cyan);
}

.service-item-text {
  color: var(--light-gray);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  line-height: 1.7;
  transition: color var(--transition-1);
}

.service-item-text:hover {
  color: var(--soft-purple);
}

/**
 * #testimonials 
 */
.testimonials {
  margin-bottom: 30px;
}

.testimonials-title {
  margin-bottom: 20px;
}

.testimonials-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px 15px;
  padding-bottom: 35px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
}

.testimonials-item {
  min-width: 100%;
  scroll-snap-align: center;
}

.testimonials-avatar-box {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-gradient-onyx);
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonials-item-title {
  margin-bottom: 7px;
}

.testimonials-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/**
 * #testimonials-modal
 */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 20;
  pointer-events: none;
  visibility: hidden;
}

.modal-container::-webkit-scrollbar {
  display: none;
}

.modal-container.active {
  pointer-events: all;
  visibility: visible;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: hsl(0, 0%, 5%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition-1);
}

.overlay.active {
  opacity: 0.8;
  visibility: visible;
  pointer-events: all;
}

.testimonials-modal {
  background: var(--eerie-black-2);
  position: relative;
  padding: 15px;
  margin: 15px 12px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  box-shadow: var(--shadow-5);
  transform: scale(1.2);
  opacity: 0;
  transition: var(--transition-1);
  z-index: 2;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.modal-container.active .testimonials-modal {
  transform: scale(1);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--onyx);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-2);
  font-size: 18px;
  opacity: 0.7;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
  opacity: 1;
}

.modal-close-btn ion-icon {
  --ionicon-stroke-width: 50px;
}

.modal-avatar-box {
  background: var(--bg-gradient-onyx);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: var(--shadow-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.modal-title {
  margin-bottom: 4px;
}

.modal-content time {
  font-size: var(--fs-6);
  color: var(--light-gray-70);
  font-weight: var(--fw-300);
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

.pagination-dots {
  text-align: center;
  margin-top: 10px;
}

.pagination-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.pagination-dots .dot.active {
  background-color: #fff;
}

/*-----------------------------------*\
  #CERTIFICATES SECTION (UPDATED TO MATCH THEME)
\*-----------------------------------*/
.certificates {
  text-align: center;
  background: var(--eerie-black-2);
  border: 1px solid var(--onyx);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-2);
  margin: 2rem 0;
}

.certificates h3 {
  color: var(--neon-blue);
  font-weight: var(--fw-600);
  text-align: left;
  font-size: var(--fs-2);
  margin-bottom: 45px;
}

.certificate-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  width: 100%;
  padding-bottom: 10px;
}

.certificate-item {
  background: var(--eerie-black-3);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid var(--jet);
  height: 100%;
  justify-content: space-between;
}

.certificate-item.premium-cert-item {
  background: linear-gradient(135deg, var(--eerie-black-2), var(--onyx));
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.4);
}

.certificate-item p {
  color: var(--light-gray);
  font-size: 15px;
  font-weight: 500;
  margin-top: 15px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.certificate-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(190, 100%, 50%, 0.15);
  border-color: hsla(190, 100%, 50%, 0.3);
}

.certificate-item.premium-cert-item:hover {
  box-shadow: 0 12px 32px hsla(39, 100%, 50%, 0.15);
  border-color: hsla(39, 100%, 50%, 0.4);
}

.thumbnail {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.thumbnail:hover {
  opacity: 0.7;
}

.certificate-item p {
  color: var(--white-2);
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  text-align: center;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  margin-top: 60px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.active .modal-content {
  transform: scale(1);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

#caption {
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .certificate-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }
}

/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/
/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/
.resume {
  margin-bottom: 50px;
}

.article-title {
  margin-bottom: 30px;
  font-size: var(--fs-2);
  font-weight: var(--fw-600);
  color: var(--neon-blue);
  text-align: center;
}

.resume-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.resume-item {
  background: var(--border-gradient-neon);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  position: relative;
  transition: transform var(--transition-1), box-shadow var(--transition-1);
}

.resume-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-4);
}

.resume-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.resume-title {
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  color: var(--cyber-cyan);
}

.resume-date {
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  color: var(--soft-purple);
}

.resume-text {
  color: var(--light-gray);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  line-height: 1.7;
  transition: color var(--transition-1);
}

.resume-text:hover {
  color: var(--soft-purple);
}

/*-----------------------------------*\
  #EDUCATION & EXPERIENCE (TIMELINE)
\*-----------------------------------*/
.timeline {
  margin-bottom: 30px;
}

.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.timeline-list {
  font-size: var(--fs-6);
  margin-left: 45px;
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
}

.timeline-item:not(:last-child) {
  margin-bottom: 20px;
}

.timeline-item-title {
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  line-height: 1.3;
  margin-bottom: 7px;
  color: var(--cyber-cyan);
}

.timeline-list span {
  color: var(--soft-purple);
  font-weight: var(--fw-500);
  line-height: 1.6;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -30px;
  width: 2px;
  height: calc(100% + 50px);
  background: var(--border-gradient-neon);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -34px;
  height: 10px;
  width: 10px;
  background: var(--cyber-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--jet), 0 0 10px var(--cyber-cyan);
}

.timeline-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  transition: color var(--transition-1);
}

.timeline-text:hover {
  color: var(--neon-blue);
}

/*-----------------------------------*\
  #SKILLS SECTION
\*-----------------------------------*/
.skills-title {
  margin-bottom: 20px;
  font-size: var(--fs-2);
  font-weight: var(--fw-600);
  color: var(--neon-blue);
}

.skills-list {
  padding: 20px;
}

.skills-item:not(:last-child) {
  margin-bottom: 15px;
}

.skill .title-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.skill .title-wrapper data {
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}

.skill-progress-bg {
  background: var(--eerie-black-2);
  width: 100%;
  height: 8px;
  border-radius: 10px;
}

.skill-progress-fill {
  background: var(--text-gradient-cyan);
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue);
  transition: background var(--transition-1);
}

.skill-progress-fill:hover {
  background: var(--neon-blue);
}

.skill-progress-fill:active {
  box-shadow: 0 0 15px var(--cyber-cyan);
}

/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/
.filter-list {
  display: none;
}

.filter-select-box {
  position: relative;
  margin-bottom: 25px;
}

.filter-select {
  background: var(--bg-gradient-onyx);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(87, 170, 255, 0.25);
  border-radius: 14px;
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  box-shadow: var(--shadow-1);
}

.filter-select.active .select-icon {
  transform: rotate(0.5turn);
}

.select-list {
  background: var(--bg-gradient-jet);
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(87, 170, 255, 0.2);
  border-radius: 14px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.15s ease-in-out;
}

.filter-select.active+.select-list {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.select-item button {
  background: transparent;
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
}

.select-item button:hover {
  --eerie-black-2: hsl(240, 2%, 20%);
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 10px;
}

.project-item {
  display: none;
  cursor: pointer;
}

.project-item.active {
  display: block;
  animation: scaleUp 0.25s ease forwards;
  opacity: 1;
  visibility: visible;
}

.project-item.playground-active {
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 10;
  animation: none; /* Disable entrance animation when dragging */
  transition: none !important; /* Disable all transitions for smooth physics */
}

.project-item.playground-active:active {
  cursor: grabbing;
}

.project-item.playground-active.dragging {
  z-index: 100;
}

@keyframes scaleUp {
  0% {
    transform: scale(0.5);
  }

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

.project-item>a {
  width: 100%;
}

.project-img {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
}

.project-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  transition: var(--transition-1);
}

.project-item>a:hover .project-img::before {
  background: hsla(0, 0%, 0%, 0.5);
}

.project-item-icon-box {
  --scale: 0.8;
  background: var(--jet);
  color: var(--orange-yellow-crayola);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--scale));
  font-size: 20px;
  padding: 18px;
  border-radius: 12px;
  opacity: 0;
  z-index: 1;
  transition: var(--transition-1);
}

.project-item>a:hover .project-item-icon-box {
  --scale: 1;
  opacity: 1;
}

.project-item-icon-box ion-icon {
  --ionicon-stroke-width: 50px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--eerie-black-2);
  transition: var(--transition-1);
}

.project-item>a:hover img {
  transform: scale(1.1);
}

.project-title,
.project-category {
  margin-left: 10px;
}

.project-title {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  line-height: 1.3;
}

.project-category {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/
.blog-posts {
  margin-bottom: 10px;
}

.blog-posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.blog-post-item>a {
  position: relative;
  background: var(--border-gradient-onyx);
  height: 100%;
  box-shadow: var(--shadow-4);
  border-radius: 16px;
  z-index: 1;
}

.blog-post-item>a::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--eerie-black-1);
  z-index: -1;
}

.blog-banner-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-banner-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}

.blog-post-item>a:hover .blog-banner-box img {
  transform: scale(1.1);
}

.blog-content {
  padding: 15px;
}

.blog-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.blog-meta :is(.blog-category, time) {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.blog-meta .dot {
  background: var(--light-gray-70);
  width: 4px;
  height: 4px;
  border-radius: 4px;
}

.blog-item-title {
  margin-bottom: 10px;
  line-height: 1.3;
  transition: var(--transition-1);
}

.blog-post-item>a:hover .blog-item-title {
  color: var(--orange-yellow-crayola);
}

.blog-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/
.mapbox {
  position: relative;
  height: 250px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--jet);
  overflow: hidden;
}

.mapbox figure {
  height: 100%;
}

.mapbox iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1);
}

.contact-form {
  margin-bottom: 10px;
}

.form-title {
  margin-bottom: 20px;
}

.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-input {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  outline: none;
}

.form-input::placeholder {
  font-weight: var(--fw-500);
}

.form-input:focus {
  border-color: var(--orange-yellow-crayola);
}

textarea.form-input {
  min-height: 100px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
  margin-bottom: 25px;
}

textarea.form-input::-webkit-resizer {
  display: none;
}

.form-input:focus:invalid {
  border-color: var(--bittersweet-shimmer);
}

.form-btn {
  position: relative;
  width: 100%;
  background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: var(--fs-6);
  text-transform: capitalize;
  box-shadow: var(--shadow-3);
  z-index: 1;
  transition: var(--transition-1);
}

.form-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--cyber-cyan);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.form-btn ion-icon {
  font-size: 16px;
}

.form-btn:hover {
  background: var(--bg-gradient-yellow-1);
}

.form-btn:hover::before {
  background: var(--bg-gradient-yellow-2);
}

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-btn:disabled:hover {
  background: var(--border-gradient-onyx);
}

.form-btn:disabled:hover::before {
  background: var(--bg-gradient-jet);
}

/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/
/**
 * responsive larger than 450px screen
 */
@media (min-width: 450px) {
  .clients-item {
    min-width: calc(33.33% - 10px);
  }

  .project-img,
  .blog-banner-box {
    height: auto;
  }
}

/**
 * responsive larger than 580px screen
 */
@media (min-width: 580px) {
  :root {
    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-6: 15px;
    --fs-7: 15px;
    --fs-8: 12px;
  }

  .sidebar,
  article {
    width: 520px;
    margin-inline: auto;
    padding: 30px;
  }

  .article-title {
    font-weight: var(--fw-600);
    padding-bottom: 15px;
  }

  .article-title::after {
    width: 40px;
    height: 5px;
  }

  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
  }

  main {
    margin-top: 60px;
    margin-bottom: 100px;
  }

  .sidebar {
    max-height: 180px;
    margin-bottom: 30px;
    background: var(--eerie-black-2);
    border: 1px solid var(--jet);
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--shadow-2);
    transition: max-height var(--transition-2);
  }

  .sidebar.active {
    max-height: 584px;
  }

  .sidebar-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .avatar-box {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 10px var(--neon-blue);
  }

  .avatar-box img {
    width: 120px;
    border-radius: inherit;
  }

  .info-content {
    text-align: center;
  }

  .info-content .name {
    font-size: var(--fs-2);
    font-weight: var(--fw-600);
    color: var(--light-gray);
    margin-bottom: 15px;
  }

  .info-content .title {
    padding: 5px 18px;
    font-size: var(--fs-6);
    font-weight: var(--fw-400);
    color: var(--cyber-cyan);
    background: var(--bg-gradient-blue-1);
    border-radius: 12px;
    display: inline-block;
    box-shadow: var(--shadow-3);
  }

  .info_more-btn {
    position: absolute;
    top: -30px;
    right: -30px;
    padding: 10px 15px;
    background: var(--jet);
    color: var(--light-gray);
    font-size: var(--fs-7);
    border-radius: 50px;
    box-shadow: var(--shadow-1);
    transition: background var(--transition-1);
  }

  .info_more-btn:hover {
    background: var(--neon-blue);
    color: var(--white-1);
    box-shadow: 0 0 10px var(--neon-blue);
  }

  .info_more-btn span {
    display: block;
    font-size: var(--fs-8);
  }

  .info_more-btn ion-icon {
    display: none;
  }

  .separator {
    width: 100%;
    height: 1px;
    background: var(--jet);
    margin: 32px 0;
  }

  .contacts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-info {
    max-width: calc(100% - 64px);
    width: calc(100% - 64px);
    color: var(--light-gray);
    font-size: var(--fs-6);
    font-weight: var(--fw-400);
  }

  .navbar {
    border-radius: 20px 20px 0 0;
  }

  .navbar-list {
    gap: 20px;
  }

  .navbar-link {
    --fs-8: 14px;
  }

  .about .article-title {
    margin-bottom: 20px;
  }

  .about-text {
    margin-bottom: 40px;
  }

  .service-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
  }

  .service-icon-box {
    margin-bottom: 0;
    margin-top: 5px;
  }

  .service-content-box {
    text-align: left;
  }

  .testimonials-title {
    margin-bottom: 25px;
  }

  .testimonials-list {
    gap: 30px;
    margin: 0 -30px;
    padding: 30px;
    padding-bottom: 35px;
  }

  .content-card {
    padding: 30px;
    padding-top: 25px;
  }

  .testimonials-avatar-box {
    transform: translate(30px, -30px);
    border-radius: 20px;
  }

  .testimonials-avatar-box img {
    width: 80px;
  }

  .testimonials-item-title {
    margin-bottom: 10px;
    margin-left: 95px;
  }

  .testimonials-text {
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  .modal-container {
    padding: 20px;
  }

  .testimonials-modal {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 25px;
    padding: 30px;
    border-radius: 20px;
  }

  .modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modal-avatar-box {
    border-radius: 18px;
    margin-bottom: 0;
  }

  .modal-avatar-box img {
    width: 65px;
  }

  .modal-img-wrapper>img {
    display: block;
    flex-grow: 1;
    width: 35px;
  }

  .clients-list {
    gap: 50px;
    margin: 0 -30px;
    padding: 45px;
    scroll-padding-inline: 45px;
  }

  .clients-item {
    min-width: calc(33.33% - 35px);
  }

  .timeline-list {
    margin-left: 65px;
  }

  .timeline-item:not(:last-child)::before {
    left: -40px;
  }

  .timeline-item::after {
    height: 8px;
    width: 8px;
    left: -43px;
  }

  .skills-item:not(:last-child) {
    margin-bottom: 25px;
  }

  .project-img,
  .blog-banner-box {
    border-radius: 16px;
  }

  .blog-posts-list {
    gap: 30px;
  }

  .blog-content {
    padding: 25px;
  }

  .mapbox {
    height: 380px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-2);
    border: 2px solid var(--jet);
  }

  .input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
  }

  .form-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--eerie-black-2);
    border: 1px solid var(--jet);
    border-radius: 12px;
    color: var(--light-gray);
    font-size: var(--fs-6);
    transition: border-color var(--transition-1);
  }

  .form-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
  }

  textarea.form-input {
    height: 150px;
    resize: none;
    margin-bottom: 30px;
  }

  .form-btn {
    --fs-6: 16px;
    padding: 16px 20px;
    background: var(--cyber-cyan);
    color: var(--white-1);
    font-size: var(--fs-6);
    font-weight: var(--fw-600);
    text-transform: uppercase;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background var(--transition-1), box-shadow var(--transition-2);
  }

  .form-btn:hover {
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
  }

  .form-btn ion-icon {
    font-size: 18px;
    transition: transform var(--transition-2);
  }

  .form-btn:hover ion-icon {
    transform: translateX(4px);
  }
}

/**
 * responsive larger than 768px screen
 */
@media (min-width: 768px) {

  .sidebar,
  article {
    width: 720px;
    max-width: 100%;
  }

  .has-scrollbar::-webkit-scrollbar-button {
    width: 80px;
  }

  .contacts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px 20px;
  }

  .navbar-link {
    font-size: 15px;
  }

  .testimonials-modal {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 700px;
  }

  .modal-avatar-box img {
    width: 85px;
  }

  .article-title {
    padding-bottom: 20px;
  }

  .filter-select-box {
    display: none;
  }

  .filter-list {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

  .filter-item button {
    color: var(--light-gray);
    font-size: var(--fs-6);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(87, 170, 255, 0.25);
    background: var(--bg-gradient-onyx);
    transition: var(--transition-1);
  }

  .filter-item button:hover {
    color: var(--cyber-cyan);
    border-color: rgba(87, 170, 255, 0.45);
  }

  .filter-item button.active {
    color: var(--smoky-black);
    background: var(--text-gradient-cyan);
    border-color: transparent;
  }

  .project-list,
  .blog-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
  }

  .input-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .form-btn {
    width: max-content;
    margin-left: auto;
    padding: 16px 25px;
  }
}

/**
 * responsive larger than 1024px screen
 */
@media (min-width: 1024px) {
  :root {
    --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.125);
    --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.125);
    --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.125);
  }

  .sidebar,
  article {
    width: 950px;
    box-shadow: var(--shadow-5);
  }

  main {
    margin-bottom: 60px;
  }

  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
  }

  .navbar {
    position: absolute;
    bottom: auto;
    top: 0;
    left: auto;
    right: 0;
    width: max-content;
    border-radius: 0 20px;
    padding: 0 20px;
    box-shadow: none;
  }

  .navbar-list {
    gap: 30px;
    padding: 0 20px;
  }

  .navbar-link {
    font-weight: var(--fw-500);
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
  }

  .testimonials-item {
    min-width: calc(50% - 15px);
  }

  .clients-item {
    min-width: calc(25% - 38px);
  }

  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-banner-box {
    height: 230px;
  }
}

/**
 * responsive larger than 1250px screen
 */
@media (min-width: 1250px) {
  body::-webkit-scrollbar {
    width: 20px;
  }

  body::-webkit-scrollbar-track {
    background: var(--smoky-black);
  }

  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--smoky-black);
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 20px;
    box-shadow: inset 1px 1px 0 hsla(0, 0%, 100%, 0.11),
      inset -1px -1px 0 hsla(0, 0%, 100%, 0.11);
  }

  body::-webkit-scrollbar-thumb:hover {
    background: hsla(0, 0%, 100%, 0.15);
  }

  body::-webkit-scrollbar-button {
    height: 60px;
  }

  .sidebar,
  article {
    width: auto;
  }

  article {
    min-height: 100%;
  }

  main {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
  }

  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
  }

  .sidebar {
    position: sticky;
    top: 60px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 60px;
    z-index: 1;
  }

  .sidebar-info {
    flex-direction: column;
  }

  .avatar-box img {
    width: 150px;
  }

  .info-content .name {
    white-space: nowrap;
    text-align: center;
  }

  .info-content .title {
    margin: auto;
  }

  .info_more-btn {
    display: none;
  }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }

  .contacts-list {
    grid-template-columns: 1fr;
  }

  .contact-info :is(.contact-link) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-info :is(.contact-link, time, address) {
    --fs-7: 14px;
    font-weight: var(--fw-300);
  }

  .separator:last-of-type {
    margin: 15px 0;
    opacity: 0;
  }

  .social-list {
    justify-content: center;
  }

  .timeline-text {
    max-width: 700px;
  }
}

/* primary optimized CSS for Android Mobile Screens (≤ 480px) */
@media (max-width: 480px) {

  .sidebar,
  article {
    width: 100%;
    padding: 12px;
  }

  .has-scrollbar::-webkit-scrollbar {
    display: none;
  }

  .sidebar {
    max-height: 350px;
    margin-bottom: 20px;
    overflow: hidden;
  }

  .sidebar.active {
    max-height: none;
    height: auto;
    overflow: visible;
  }

  .avatar-box img {
    width: 100px;
  }

  .contacts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .navbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: hsla(240, 1%, 17%, 0.9);
    padding: 10px 0;
  }

  .navbar-link {
    font-size: 13px;
    padding: 12px 8px;
  }

  .about .article-title {
    margin-bottom: 10px;
  }

  .about-text {
    font-size: var(--fs-7);
    line-height: 1.5;
  }

  .about-text p {
    margin-bottom: 10px;
  }

  .article-title {
    padding-bottom: 15px;
  }

  .filter-list {
    display: none;
  }

  .project-list,
  .blog-posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /**
   * CONTACT SECTION
   */
  .mapbox {
    height: 250px;
    border-radius: 12px;
  }

  .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }

  .form-input {
    padding: 12px 16px;
    font-size: 14px;
  }

  textarea.form-input {
    margin-bottom: 20px;
  }

  .form-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .testimonials-avatar-box {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto 10px auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .testimonials-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .testimonials-item {
    text-align: center;
    padding-top: 20px;
  }

  .content-card {
    padding: 20px;
  }
}

/* Mobile sidebar content visibility fix */
@media (max-width: 580px) {
  .sidebar.active .sidebar-info_more {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .sidebar.active .coding-profiles-section,
  .sidebar.active .social-list {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Fix project items visibility on mobile */
  .project-item {
    display: none !important;
  }

  .project-item.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/*-----------------------------------*\
  #SCROLL INDICATOR
\*-----------------------------------*/
.scroll-down {
  position: fixed;
  bottom: 80px;
  /* Above navbar on mobile */
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.scroll-down.hidden {
  opacity: 0;
}

.mouse {
  width: 25px;
  height: 45px;
  border: 2px solid var(--neon-blue);
  border-radius: 15px;
  display: block;
  position: relative;
  box-shadow: 0 0 10px var(--neon-blue);
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--cyber-cyan);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s ease-in-out infinite;
}

.arrow {
  margin-top: 5px;
}

.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--neon-blue);
  border-right: 2px solid var(--neon-blue);
  transform: rotate(45deg);
  margin: -5px;
  animation: arrow 1.5s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
  animation-delay: -0.4s;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

@keyframes arrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

@media (min-width: 580px) {
  .scroll-down {
    bottom: 30px;
  }
}

/*-----------------------------------*\
  #PREMIUM TIMELINE
\*-----------------------------------*/
.timeline-container {
  position: relative;
  padding-left: 20px;
  /* Space for the line */
  margin-top: 30px;
}

/* Glowing Line */
.timeline-line {
  position: absolute;
  top: 0;
  left: 4px;
  width: 2px;
  height: 100%;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 4px;
}

.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  /* Animate this via JS */
  background: linear-gradient(to bottom, var(--neon-blue), var(--soft-purple));
  box-shadow: 0 0 10px var(--neon-blue);
  border-radius: 4px;
  transition: height 0.1s linear;
}

/* Timeline Items */
.timeline-list {
  list-style: none;
  padding: 0;
}

.timeline-item.premium-card {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  /* Hidden initially for animation */
  transform: translateY(20px);
}

/* Magnetic Dot */
.timeline-dot {
  position: absolute;
  top: 5px;
  left: -21px;
  /* Align with line */
  width: 12px;
  height: 12px;
  background: var(--eerie-black-2);
  border: 2px solid var(--neon-blue);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--neon-blue);
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
}

.timeline-item.active .timeline-dot {
  background: var(--neon-blue);
  box-shadow: 0 0 15px var(--neon-blue);
  transform: scale(1.3);
}

.timeline-dot:hover {
  transform: scale(1.5);
  cursor: none;
  /* Let custom cursor takeover */
}

/* Glass Card Content */
.timeline-content {
  background: hsla(240, 2%, 18%, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid hsla(0, 0%, 100%, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.premium-card:hover .timeline-content {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 216, 255, 0.15);
  transform: translateX(5px);
}

/* Typography */
.timeline-year {
  display: inline-block;
  font-size: var(--fs-7);
  color: var(--neon-blue);
  font-weight: var(--fw-600);
  margin-bottom: 8px;
  background: rgba(0, 216, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.timeline-text {
  color: var(--light-gray);
  line-height: 1.6;
}

/* Active State Highlighting */
.timeline-item.active .timeline-content {
  border-left: 3px solid var(--neon-blue);
}

/*-----------------------------------*\
  #PREMIUM PROJECTS
\*-----------------------------------*/

.project-item {
  display: none;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-item.active {
  display: block;
  opacity: 1;
  visibility: visible;
  animation: fadeInScale 0.5s ease forwards;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  /* Consistent height */
  border-radius: 16px;
  overflow: hidden;
  background: var(--eerie-black-2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
  /* Fix for Safari */
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--eerie-black-2);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item:hover .project-img-wrapper img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay ion-icon {
  font-size: 40px;
  color: var(--neon-blue);
  transform: scale(0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-item:hover .project-overlay ion-icon {
  transform: scale(1);
}

.project-content {
  padding: 20px 10px;
  position: relative;
}

.project-title {
  font-size: var(--fs-5);
  color: var(--white);
  font-weight: var(--fw-600);
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.project-item:hover .project-title {
  color: var(--neon-blue);
}

.project-category {
  font-size: var(--fs-6);
  color: var(--light-gray-70);
  margin-bottom: 10px;
}

.project-desc {
  font-size: var(--fs-6);
  color: var(--light-gray);
  line-height: 1.6;
  opacity: 0.8;
}

/*-----------------------------------*\
  #SCROLL ANIMATIONS (P7)
\*-----------------------------------*/

/* Projects section: Always visible, no scroll animation */
section.projects {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

section.projects.animate-on-scroll {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

section.projects.animate-on-scroll.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* CRITICAL FIX: Force project items to always be visible immediately */
section.projects .project-list {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

section.projects .project-item {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: fadeInScale 0.3s ease forwards !important;
}

section.projects .project-item.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: fadeInScale 0.3s ease forwards !important;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Sequence */
.stagger-sequence > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.stagger-sequence.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-sequence > *:nth-child(1) { transition-delay: 0ms; }
.stagger-sequence > *:nth-child(2) { transition-delay: 150ms; }
.stagger-sequence > *:nth-child(3) { transition-delay: 300ms; }
.stagger-sequence > *:nth-child(4) { transition-delay: 450ms; }
.stagger-sequence > *:nth-child(5) { transition-delay: 600ms; }
.stagger-sequence > *:nth-child(6) { transition-delay: 750ms; }
.stagger-sequence > *:nth-child(7) { transition-delay: 900ms; }
.stagger-sequence > *:nth-child(8) { transition-delay: 1050ms; }
.stagger-sequence > *:nth-child(n+9) { transition-delay: 1200ms; }

/*-----------------------------------*\
  #AI CHAT PANEL
  (button is now inside the command-dock)
\*-----------------------------------*/

/* .ai-chat-badge is styled in os-intelligence.css */

.ai-chat-panel {
  position: fixed;
  top: 50%;
  right: 56px; /* Sits left of the command dock */
  transform: translateY(-50%) translateX(14px);
  width: 360px;
  height: 500px;
  background: hsla(225, 40%, 10%, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid hsla(225, 30%, 28%, 0.5);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow:
    -8px 0 40px hsla(220, 50%, 5%, 0.6),
    0 0 0 1px hsla(225, 30%, 30%, 0.2);
  z-index: 1090;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.ai-chat-panel.active {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: all;
}

.ai-chat-header {
  padding: 14px 16px;
  background: hsla(225, 40%, 12%, 0.9);
  border-bottom: 1px solid hsla(225, 30%, 28%, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Environment-reactive top accent line */
  border-top: 2px solid var(--neon-blue, hsl(197, 100%, 55%));
}

.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white-2);
}

.ai-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(145, 80%, 50%);
  box-shadow: 0 0 6px hsl(145, 80%, 50%);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.ai-chat-title ion-icon {
  color: var(--cyber-cyan);
  font-size: 18px;
}

.ai-title-name {
  display: block;
  font-weight: var(--fw-600);
  font-size: var(--fs-5);
  line-height: 1.2;
}

.ai-title-sub {
  display: block;
  font-size: var(--fs-8);
  color: var(--light-gray-70);
  line-height: 1.2;
}

.ai-chat-close {
  color: var(--light-gray);
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
}

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ai-message {
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 85%;
  font-size: var(--fs-6);
  line-height: 1.5;
}

.ai-message.bot {
  align-self: flex-start;
  background: var(--onyx);
  color: var(--white-2);
  border-bottom-left-radius: 2px;
}

.ai-message.user {
  align-self: flex-end;
  background: var(--bg-gradient-blue-1);
  color: var(--white-1);
  border-bottom-right-radius: 2px;
}

.ai-chat-form {
  padding: 15px;
  border-top: 1px solid var(--jet);
  display: flex;
  gap: 10px;
}

.ai-chat-form input {
  flex: 1;
  background: var(--onyx);
  border: 1px solid var(--jet);
  padding: 10px 15px;
  border-radius: 10px;
  color: var(--white-2);
  outline: none;
  font-size: var(--fs-6);
}

.ai-chat-form button {
  background: var(--bg-gradient-onyx);
  color: var(--cyber-cyan);
  border: 1px solid var(--jet);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-1);
}

.ai-chat-form button:hover {
  background: var(--bg-gradient-blue-1);
  color: var(--white-1);
}

/* Three-dot animated typing indicator */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  background: var(--onyx);
  padding: 10px 14px;
  border-radius: 15px;
  border-bottom-left-radius: 2px;
}

.ai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyber-cyan);
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* Quick-prompt chips */
.ai-quick-prompts {
  margin-top: 5px;
}

.ai-quick-label {
  font-size: var(--fs-8);
  color: var(--light-gray-70);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chip {
  background: var(--onyx);
  border: 1px solid var(--jet);
  color: var(--light-gray);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: var(--fs-8);
  cursor: pointer;
  transition: var(--transition-1);
  white-space: nowrap;
}

.ai-chip:hover {
  background: var(--bg-gradient-blue-2);
  color: var(--white-1);
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px var(--hover-glow);
}

/* Mobile Responsiveness */
@media (max-width: 450px) {
  .ai-chat-panel {
    top: auto;
    bottom: 150px;
    right: 50%;
    transform: translateX(50%) translateY(20px);
    width: calc(100vw - 40px);
    height: 60vh;
    max-height: 500px;
  }

  .ai-chat-panel.active {
    transform: translateX(50%) translateY(0);
  }
  
  .ai-chat-btn {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 26px;
  }
}

/*-----------------------------------*\
  #PROJECT MODAL
\*-----------------------------------*/

.project-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}

.project-modal-container.active {
  pointer-events: all;
  visibility: visible;
}

.project-modal-container .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: hsl(0, 0%, 5%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-1);
  z-index: 1;
}

.project-modal-container.active .overlay {
  opacity: 0.8;
  visibility: visible;
}

.project-modal {
  position: relative;
  background: var(--eerie-black-2);
  margin: 15px;
  padding: 15px;
  border: 1px solid var(--jet);
  border-radius: 20px;
  box-shadow: var(--shadow-5);
  transform: scale(0.8);
  opacity: 0;
  transition: var(--transition-1);
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.project-modal-container.active .project-modal {
  transform: scale(1);
  opacity: 1;
}

.project-modal .modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--onyx);
  color: var(--white-2);
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  opacity: 0.7;
  transition: var(--transition-1);
  z-index: 10;
}

.project-modal .modal-close-btn:hover { opacity: 1; }

.demo-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--smoky-black);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--jet);
  position: relative;
}

.demo-banner {
  background: var(--bg-gradient-blue-1);
  color: var(--white-1);
  padding: 8px 15px;
  font-size: var(--fs-8);
  font-weight: var(--fw-600);
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.demo-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: white; /* Fallback for iframes that take time to load */
}

.demo-fallback {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  background: var(--eerie-black-1);
}

.fallback-icon {
  font-size: 60px;
  color: var(--bittersweet-shimmer);
  margin-bottom: 20px;
}

.fallback-title {
  color: var(--white-2);
  margin-bottom: 15px;
}

.fallback-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  max-width: 400px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.fallback-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-gradient-onyx);
  color: var(--cyber-cyan);
  padding: 12px 25px;
  border-radius: 12px;
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  border: 1px solid var(--jet);
  transition: var(--transition-1);
}

.fallback-link:hover {
  background: var(--bg-gradient-blue-1);
  color: var(--white-1);
}

@media (min-width: 768px) {
  .project-modal {
    padding: 30px;
    height: 85vh;
  }
  
  .project-modal .modal-close-btn {
    top: 25px;
    right: 25px;
  }
  
  .demo-banner { font-size: var(--fs-7); }
}

/*-----------------------------------*\
  #HORIZONTAL JOURNEY
\*-----------------------------------*/

.journey-horizontal-section {
  padding: 0 !important;
  margin: 30px 0 !important;
  max-width: none !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 
  CRITICAL: article and main-content normally have overflow: hidden, 
  which breaks position: sticky for the journey.
*/
article.has-journey,
.main-content.is-journey-active {
  overflow: visible !important;
}

.journey-horizontal-section .title-wrapper {
  padding: 0 30px;
  margin-bottom: 25px;
}

.journey-wrapper {
  position: relative;
  min-height: 200vh; /* Fallback */
  background: transparent;
  width: 100%; /* Fill available content space */
  margin-left: 0;
  z-index: 2;
}

.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 2;
}

.journey-track {
  display: flex;
  height: 100%;
  width: max-content; /* Dynamic width based on panels */
  will-change: transform;
}

.journey-panel {
  width: 100%; /* JS will force this to match parent width */
  height: 80vh; /* Slightly shorter to fit header/padding */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px;
  box-sizing: border-box;
  background: var(--panel-bg);
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(0, 216, 255, 0.1);
  border-radius: 20px;
}

.panel-year {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 10rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 216, 255, 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  user-select: none;
  pointer-events: none;
  opacity: 0.15;
  text-shadow: 0 0 30px rgba(0, 216, 255, 0.1);
}

.panel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.panel-content h4 {
  font-family: 'Syne', sans-serif;
  font-size: 4vw;
  margin-bottom: 20px;
  color: var(--cyber-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.panel-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--white-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.4rem;
}

.panel-text span {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
}

.journey-panel.active .panel-text span {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .panel-content h4 {
    font-size: 8vw;
  }
  .panel-text {
    font-size: 1rem;
  }
  .panel-year {
    font-size: 25vw;
  }
}